richardmillen / zguide-examples

Implementations of the 0MQ examples in the guide.
http://zguide.zeromq.org/page:all
4 stars 0 forks source link

Representing State as Key-Value Pairs in C++ #27

Open richardmillen opened 7 years ago

richardmillen commented 7 years ago

Implement the Representing State as Key-Value Pairs example.

We'll develop Clone in stages, solving one problem at a time. First, let's look at how to update a shared state across a set of clients. We need to decide how to represent our state, as well as the updates. The simplest plausible format is a key-value store, where one key-value pair represents an atomic unit of change in the shared state.