sand
sand

Reputation: 552

C++ application as a service with high performance

I need to provide a C++ application as a service. Client of the service and the service can be on the same machine or distributed on different machines based on the load. This application takes a ~2KB string as input and returns almost similar size of string after some processing. Turnaround time for the client should be really quick. What is the best mechanism to implement this?

Upvotes: 2

Views: 337

Answers (2)

jcayzac
jcayzac

Reputation: 1461

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

Upvotes: 1

Billy ONeal
Billy ONeal

Reputation: 106549

Given that the input size is less than a memory page wide on localhost, it's unlikely that any mechanism is going to make a measurable difference here. As for remote machines, network latency will probably be the bottleneck rather than client/server issues.

Upvotes: 4

Related Questions