Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7416737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:33:29+00:00 2026-05-29T07:33:29+00:00

I want to start a mobile application however I got some questions. I am

  • 0

I want to start a mobile application however I got some questions. I am confused about database connection layer. Should I construct my architecture 2 layered; 1st layer is mobile app (making the database connection in mobile app), 2nd layer is just database. Or 3 layered; 1st is mobile app, 2nd is server (which handles the connection between database and app), 3rd is database.

What are the pros and cons of these two architecture?
Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T07:33:31+00:00Added an answer on May 29, 2026 at 7:33 am

    The only advantage of having the mobile app communicated directly with the database is that it might be faster to implement in the short run.

    In the slightly longer run, three layers are a much better choice for several reasons:

    1. Flexibility – have the mobile app work against a service layer (for example, through some JSON APIs) that abstracts the database internals. This will make it much easier to make changes to your schema, even replace the entire data layer, without breaking the mobile clients. This is critical when you release new versions that involve changes to both your mobile app and your data layer, and have some apps out in the field that didn’t update yet. A service layer will make support for multiple versions manageable. Working directly with the database would make it very nearly impossible.

    2. Security – managing user logins, permissions etc. is usually not as well supported in the DB as it is in a service layer.

    3. Scalability – should your app succeed and you’ll need to scale the server side, a service layer would greatly increase your options (going back to no. 1 – flexibility).

    4. This should be enough to get you convinced, but I’m sure other replies will come up with more 🙂

    Regarding your other questions – recommend a technology/architecture for the server, there are lots of viable options – Ruby, Python, PHP, Node. The “best” depends on what you’re already familiar with.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to start an application which will use ajax push, however the web
I have a situation like this: start(); <Some code> end(); I want start() function
I want to write a C application that runs on Symbian mobile OS. I
I want to start develop mobile applications and sell it. There are many mobile
I want to create a mobile application on Microsoft platform, but I dont know
I want to prototype a server application to support a mobile application. But how
I am developing a windows mobile application in which I want to debug the
I`m willing to start mobile programming ... I want to know where do I
I want to create wayfinder/pathfinder mobile application. it will route visitors in our buildings.
I am starting into the development of mobile app. I want to start with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.