Home > Blockchain >  How to build real time streaming application
How to build real time streaming application

Time:12-28

I am going to build application that shows real time data with React. And I decided to use Pusher for real time data management. I also trying to use open third party apis for getting data. For example openweathermap for weather data.

My trouble is how can I know if the data from third party api is changed and let the Pusher know data is changed.

In one word, how can I make Pusher to connect third party apis?

Really want your help. Thank you.

CodePudding user response:

Maybe there is a system for it in Pusher but I don't know.

If it is possible for you, you can create a cron service that checks your 3rd API continually. But it has to be on a live service to run continually. If it detects any changes in the data, it can emit your client app by using Pusher, Socketio, etc.

Maybe the 3rd API provides this feature to you.

  • Related