Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

A good ideas to handle a lot of request from mobile apps

Posted on 2016-09-01
7
Medium Priority
?
177 Views
Last Modified: 2016-09-04
Our apps consume a lot of JSON request (E.g: 1 million downloaded) to download line of data (30Kb) every minutes. What is the best way to architect into mobile apps.
0
Comment
Question by:Imran Hamzah
7 Comments
 
LVL 9

Expert Comment

by:Mukesh Yadav
ID: 41779560
Can you please share some data structure to are planning to use?
0
 
LVL 30

Accepted Solution

by:
Olaf Doschke earned 2000 total points
ID: 41779566
Caching, not only full html pages can have a cache-pragma header, any request result. Especially look into ETag. https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-caching?hl=en

Also think about CDN (content delivery network), also if the content to cache only is valid for a minute, if even only 1% of millions of users request the same json, you can move that load from your servers via caching and CDN.

Bye, Olaf.
3
 

Author Comment

by:Imran Hamzah
ID: 41779567
We are doing education apps where student apps will answering 30 questions.
We use ionicframework 1 in development.

For now, we have 100k students online using at the same time and our apps consume JSON API to download all that 30 questions into apps for them to answer. It is a huge request, is there any better ideas in apps development to handle this much request? (Currently that JSON request is consumed by website system)
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 111

Expert Comment

by:Ray Paseur
ID: 41779607
What a great project!

Can you post a test data sample of the JSON document -- all 30Kb of it.  I'd like to look at it for redundancies, opportunities for compression, data design, etc.  After I see it, I'll post suggestions and you can see if any of them would be feasible.

Also, I agree 100% with Olaf about cache and CDN.  Battery life in the client device is going to be an issue, and it takes about 10X the electric power to get information from the internet, vs getting the information from the app or browser in the device, so cache helps in many ways.

It might also be useful (depending on the CDN) to consider using cache in the server.
3
 
LVL 30

Expert Comment

by:Olaf Doschke
ID: 41779816
A CDN is the main partner doing caching not only server side nor only client side, but inbetween, in the cloud. This means not only requests of non changed content with the same ETag will not arrive at your server and be no load to it, also a request for the same package of questions coming from different clients can already be provided from the CDN network after the first student requested it, you only need to cope with the N packages of different answers coming back, not with providing the same question package over and over again, even not from your server side cache.

Take a look especially on the list of CDN providers mentioned in the Wikipedia article about this technology: https://en.wikipedia.org/wiki/Content_delivery_network

Since you are having an education project, I'm sure you qualify for governmental or educational discounts of such services or get more features even with a free plan.

Bye, Olaf.
1
 

Author Closing Comment

by:Imran Hamzah
ID: 41784129
Thank you very much.
Now, I see on how to speed up my content delivery to my clients.
0
 

Author Comment

by:Imran Hamzah
ID: 41784163
Does firebase (https://www.firebase.com/) also support CDN?
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A new Acronis survey shows people often have conflicting thoughts about data protection.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question