C ++ app as a service with high performance

I need to provide a C ++ application as a service. A service and service client can reside on the same machine, or spread across different machines based on load. This application takes a ~ 2KB string as input and returns nearly the same string size after some processing. The processing time for the client must be very fast. What is the best mechanism to implement this?

+2


a source to share


2 answers


Given that the size of the input is smaller than a page of memory on the localhost, it is unlikely that any mechanism will make a measurable difference here. For remote computers, network latency is likely to be a bottleneck and not a client / server problem.



+4


a source


You should take a look at the ASIO library , which is available either as part of the enhancement or as a standalone library, and provides you with everything you need to implement reliable and fast asynchronous services over the network.



+1


a source







All Articles