Featured Post

Scalability Techniques

Scalability is about the capability of a system to manage the increase workload of a system without causing qualities impact (i.e. perfo...

Monday, February 6, 2017

Producer/Consumer Poison Pill

Poison pill is a technique used by a Producer to drug a Consumer in order to communicate the end of trasmission.

This kind of technique is generally used when a Producer and a Consumer share only one pipe for normal communication.

We can consider Poson Pill as a common practice when the pipe between Producer and Consumer is a datatype channel: the same channel is used to exchange different kind of data types between endpoints.

So because the datatype channel is used for different message types, it's usual to divide message into two categories:
- message data types;
- control message data types. 

A Poison Pill is a Control Message Data Type used to communicate the state of the entire channel: the intension of the Producer to stop itself.

No comments :

Post a Comment