简体   繁体   中英

Return large volumes of data in REST API

I am developing REST APIs for mobile apps; we have a web app, which doesn't filter large volumes of meta data. Apps are taking more time to parse these high volume of (2k records with 5 columns) metadata. What are the best ways to handle this scenario from both API & App perspective. API options are preferred..

App devs are asking to return database (sql lite, etc) by combining all the metadata routes and initial sync into a single route.. I am not finding much pointer around this.. is this a practice in industry?

You can think of using asynchronous streaming to send large data to front end and change the client to consume the stream

Sample implementation

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM