Hello,
I'm writing a message broker using webscoket++ 0.4.0. The message broker uses websocketpp::server<websocketpp::config::asio>.
It is similar to the following documentation:
http:
/
/
www.za.com/w
phoyd
b
esoc
k
e
tp
p
/man
ua
l/buildin
g
-
program
-
webs
oc
ket
The message broker is a single thread server application, so far. I'd like to run the message broker on Amazon EC2. The message broker receives and sends tons of message, so high network performance instance as c3.8xlarge is required. It has 32 vCPUs. I'd like to use them efficiently.So I started updating the message broker as multi-threading.
According to the following documentation, transport::asio_mt is not implemented yet:
So I can't call io_service::run() from multiple threads.
Is there any good way to implement the multi-threading message broker?
I'd like to use boost::asio based approach because I'm using io_service not only for websocket++ but also for other purposes.
e.g.) console input and a http server to report health status for Amazon Elastic Load Ballancer.
However, boost::asio based is not mandatory requirement, if there is a better multihreading approach, I'd like to know that.
Regards,
Takatoshi Kondo