I have a batch file that runs every 5 seconds(via systemd).Its task is to run the script in the application.The application is written in a PHP framework and uses routing.
I had a choice - to launch the application using routing - that is, through a post-request from a batch file.Or by a command from the batch file to execute the file?
Posting a request is more convenient for me, because the architecture of the framework is built through routing.But the question is whether there will be problems with sending requests every 5 seconds.In general, is it faster, a command or request? I would appreciate any advice.
The team is faster anyway, and so all healthy people do.Besides, it is worth using cron
Requests are not needed there.All popular frameworks allow you to add console commands without problems, and have separate controllers for this business.