Home » Php » javascript – Send out API Response in Chunks to React Native Application

javascript – Send out API Response in Chunks to React Native Application

Posted by: admin February 25, 2020 Leave a comment

Questions:

So, this is basically to improve the user experience. My App makes a request to backend API, which in turn makes a series of API requests simultaneously, and it takes about 30 seconds for fetching all the information. So, optimizing the speed is not in my hands. It depends on external APIs response time.

So, the only thing I can do from my end is, as soon as certain datas are ready, I want to send it to the application for the users, so that, users may not feel like waiting for such a long time.

I read about web sockets and thought this could be my solution. I just want to be sure though.

Is this achievable through Web Sockets ? If not, any other better solution?

Also any links which could help me in solving this will be appreciated. Thank you.

How to&Answers: