Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

I have a question about application integration of Web and App

The companies like Facebook, Instagram, etc, they've all developed Web and App(Android&IOS).

I believe that they have complicated controllers and database architectures since they have many users.

I want to know if they build all the complicated controllers and database just for Web, but not for App. I guess it is like App queries to Web and Web gives the result back.

it goes like... "User(asks 1+1 to App) -> App(asks 1+1 to Web) -> Web(calculates 1+1=2) -> APP(give the answer 2 to User) -> User(get 2)"

instead of... "User(asks 1+1 to APP) -> App(calculates 1+1=2 and gives the answer 2 to User) -> User(get 2)"

The reason that I'm thinking this way is because, you can do more complicated job in JSP, Struct, Spring, MySQL more than just Android OS with Java and Sqlite.

However, another question also comes up from here. If it is done as above the example, the App will be very slow.

Please, tell me how big companies integrate Web and App together.

1 Answer

You are right . Most companies use android apps as a front end with limited functionality. The calculations / data storage is performed at the back end. The reason that the app is not so slow is because of background loading and effective utilization of resources. Plus modern wireless internet allows quick transfer of large amounts of data. If you wanna know how its done you might wanna look up a treehouse course on Ribbit app which was like snapchat, though the app cant be implemented as shown any longer cause the backend system used in the course (Parse.com) has now been shutdown.