Why is the paradigm of “direct database connection” not welcomed by the Android platform?

前端 未结 2 1098
一生所求
一生所求 2020-12-03 09:30

When I say \"direct database connection\", I meant to use a JDBC-alike driver to call and run a remote database query within the context of an activity, just like using an S

2条回答
  •  误落风尘
    2020-12-03 09:46

    I thought, regardless of the unstable Wi-Fi/3G network bore by most if not all android devices, to connect to a database should be done like so.

    You are welcome to your opinion. I vehemently disagree with you. JDBC and similar protocols are designed for reliable, low-latency LANs, not unreliable, high-latency mobile networks. Moreover, you would need your database to be visible on the public Internet, meaning that it will be subject to hackers.

提交回复
热议问题