V
V
Vitaly Pukhov2015-05-26 09:17:42
Programming
Vitaly Pukhov, 2015-05-26 09:17:42

What is the best way to implement a service?

It is necessary to implement a multi-threaded service that listens on 1 tcp port, many clients should be able to connect to it (and not disconnect), each of which should be processed in a separate thread in the question-answer format (a question from the server to the client). The limitation on 1 port is mainly due to the fact that the number of clients can be any, and opening 150 ports is not the best idea, especially since you will have to create 1 more service that will distribute these ports, which would not be desirable.
I thought to try to do it on the basis of zeromq, so as not to fence the bike, can anyone advise how best to implement it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem Voronov, 2015-05-26
@Neuroware

I solve similar problems with the help of ServiceStack. Here you can get acquainted with the implementation of mq using ServiceStack.

R
R000M, 2015-05-26
@R000M

And why clients should not be disconnected?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question