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:
you expose database directly internet opening port public access apps connect. web app adds layer in middle, keeping database access inside intranet.
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.
by providing access way, android mobile devices can rooted, potentially granting anonymous access data.
performance issues:
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.
for same reason, can't take advantage of connection pooling, saves overhed of establishing connection database each incoming request.
scalability issues:
- 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
Post a Comment