学习是最好的投资!
This is typical inter-process communication, there are many methods:
The website backend provides an HTTP API for scripts to call and send the status there
Use the file directly, the script is in the file writing state, and the website background reads the file
Use redis
Use message queue
Use database
This is typical inter-process communication, there are many methods:
The website backend provides an HTTP API for scripts to call and send the status there
Use the file directly, the script is in the file writing state, and the website background reads the file
Use redis
Use message queue
Use database