android - Connect to mySQL database over LAN without using a webserver -


i want have multiple clients connect server on lan , access/modify mysql database in server.

how go doing this? can guys provide resources/links research on topic

to answer question, should able connect mysql database adding jdbc driver project jar file in android studio.

now real app plan distributed thousands of users there security issues, performance issues, , scalability issues.

security issues:

  1. you expose database directly internet opening port public access apps connect. web app adds layer in middle, keeping database access inside intranet.

  2. you expose data directy public providing @ least 1 public account known (i assume way access because managing 1 account per user wouldn't realistic). web app isolates user account database accounts.

  3. by providing access way, android mobile devices can rooted, potentially granting anonymous access data.

performance issues:

  1. with web app in middle, webapp manages connections database. enables sharing connections amongst different users vs. 1 dedicated connection per user have if different devices estable separate connections.

  2. for same reason, can't take advantage of connection pooling, saves overhed of establishing connection database each incoming request.

scalability issues:

  1. as connections not shared number of concurrent users bound number of connections can open @ same time database.

edit 1

i adding alternative thought of involves using web application not implemented using webserver. java nio framework runs on own. limitations of solution need shell access server , java, not common in traditional hostings. checkout netty.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -