Answer the question
In order to leave comments, you need to log in
Accurate timer from php/laravel?
Hello. There is a project in laravel, php. The framework offers a delay queuing system.
The task is to postpone the execution of the Job for 30 seconds with a maximum error of 500ms (better - less). I am writing on Windows (unfortunately), so there is no way to test beanstalkd or redis as queue handlers under normal conditions.
On Windows, radish gives an error of 2+ seconds, which does not climb into any gate at all. Will the situation change on the linux server? If not, will the situation change when using beanstalkd on linux?
If this is not the case, then I ask you to suggest a way to make the exact timeout in php (entrance to php and exit to php, and what's behind the scenes - it doesn't matter. at least js).
Answer the question
In order to leave comments, you need to log in
You describe the task, it looks like you designed something wrong, or you think too straightforward, finding solutions "on the forehead", where there are simpler ways.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question