hmbdc
simplify-high-performance-messaging-programming
hmbdc::app::context_property::partition Class Reference

Context template parameter inidcating each message is sent to one and only one of the clients within the Context and its attached ipc Contexts if appllies. More...

#include <Context.hpp>

Detailed Description

Context template parameter inidcating each message is sent to one and only one of the clients within the Context and its attached ipc Contexts if appllies.

each message is still subjected to Client's message type filtering When this Context is specialized using this type, the context normally works with homogeneous Clients to achieve load balance thru threads. No coordination is needed between Clients. Only the direct mode Clients are supported, thread pool is NOT supported by this kind of Context - the pool related functions in Context are also disabled

There is no limit on how many Clients can be started in the Context. Also, there is no limit on when you can start a Client in this Context.

Example in server-cluster.cpp:

// use partition so that a message is dispatched to one and only one client in the context
using ServerContext = Context<sizeof(Request), context_property::partition>;

The documentation for this class was generated from the following file: