C
C
chuck2014-09-01 13:00:22
Command line
chuck, 2014-09-01 13:00:22

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

1 answer(s)
A
Alexander, 2014-09-01
@SashaSkot

And what prevents you from sending a request to complete the task and 1 more for the status of execution?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question