Solved

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

Posted on 2016-09-01
7
153 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 29

Accepted Solution

by:
Olaf Doschke earned 500 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
Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

 
LVL 110

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 29

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

2017 Webroot Threat Report

MSPs: Get the facts you need to protect your clients.
The 2017 Webroot Threat Report provides a uniquely insightful global view into the analysis and discoveries made by the Webroot® Threat Intelligence Platform to provide insights on key trends and risks as seen by our users.

Question has a verified solution.

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

Ensuring effective and secure communication in the age of healthcare BYOD.
This article discusses how to implement server side field validation and display customized error messages to the client.
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

623 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