I am working on an app that requires fetching data from a third-party server and that server allows max 1 request per seconds.
Now, all request send as job and I am
Assuming you have only single worker you can do something like this:
so basically:
doSomething() $time = microtime(true); usleep(1000 - ($time - LARAVEL_START));