Answer the question
In order to leave comments, you need to log in
How to implement dynamic update of data in the database?
Good afternoon.
I am writing a website, it is necessary to receive data from many apis of different services, perform small calculations and display the results on the website. As I see all this: we write a php script that will process the same data from api,enter it into the database and transfer it to the front-end, then run it with Cron every n minutes. The question arises of how best to implement all this, api is quite a lot, the data needs to be updated as often as possible and at the same time not to heavily load the server.
Answer the question
In order to leave comments, you need to log in
So what is the question?
1) There are not enough resources - we buy server capacity,
2) there is not enough data - we request more often,
3) there is not enough capacity again - see point 1.
what and how is requested from you and with what frequency is updated no one here knows, there are other options except for setting the frequency of requests for each api, there is not much.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question