Answer the question
In order to leave comments, you need to log in
Why do you need a master server in impress?
Good afternoon! I dig impress, there are a lot of questions. During installation, the /config/servers.js file is created , where as many as 3 servers for one application are described. These are master , www , rpc .
If what is www is understandable, then why do we need the remaining 2? And each of them on the port?
Answer the question
In order to leave comments, you need to log in
In Impress, each process has its own separate open port, this is necessary so that you can connect to it not through the master process, but directly. In general, there is inter-process communication in Impress, child processes are connected via TCP to the master process so that it provides synchronization of data, translation of events and management of all of them. But client connections do not go through the master, but go directly to the workers. In the example www is http server on port 80, rpc is jstp server on port 3000. What is JSTP you can read here: https://github.com/metarhia/JSTP and read or listen to this article: https://habrahabr.ru/post/306584/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question