probably with a continuously running service. It's not a good idea to keep booting the framework on every interval
Apr 3, 2021
13
Level 4
How to fire an API call faster than the time/speed of cron jobs?
Hi all,
I have to make an API that requests some data once per 1/2 second on another server. How would you do this with Laravel / PHP in general please?
Right now for example, I fire a cron job every second, and use a loop function that uses:
usleep( 500000 ); //MIlliseconds
Would this be the right way forward? Or do you know any other methods please?
Thanks,
Please or to participate in this conversation.