G
G
grabbee2021-01-07 14:14:12
Database
grabbee, 2021-01-07 14:14:12

Is there any tool to execute database queries with a delay?

For example, to prevent frequent requests, you can use a mock, and check when the request was before and how much time has passed. This will reduce the total number of requests. But if you do the opposite.
* For example, a request comes in, and we don’t send it to the database, but somehow remember
* Come the same request, and we update the timestamp and still don’t send it to the database
* And when the timer, for example, is 5 minutes all passed and there were no repeated requests, then we throw this request for processing either into the database or into the handler.

Is it queues solved with deferred processing? RabbitMQ for example. The only way?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question