richardmillen / zguide-examples

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

Slow Subscriber Detection (Suicidal Snail Pattern) in C++ #26

Open richardmillen opened 7 years ago

richardmillen commented 7 years ago

Implement the Slow Subscriber Detection (Suicidal Snail Pattern) example.

A common problem you will hit when using the pub-sub pattern in real life is the slow subscriber. In an ideal world, we stream data at full speed from publishers to subscribers. In reality, subscriber applications are often written in interpreted languages, or just do a lot of work, or are just badly written, to the extent that they can't keep up with publishers.