Answer the question
In order to leave comments, you need to log in
Interaction of CLI and server. How right?
You need to write a console utility that will send commands to the server (web server). In this case, commands can be executed for several minutes. How to properly organize communication with the server? Through what protocol?
The usual POST / GET request, it seems to me, will not work. It is foolish to wait a minute for a response from the server, to occupy a worker process. Maybe something asynchronous to try or long-puling?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question