View Source on Github

Poison Pill

Difficulty-Intermediate Java Reactive Other


Poison Pill is known predefined data item that allows to provide graceful shutdown for separate distributed consumption process.

alt text


Use the Poison Pill idiom when

  • need to send signal from one thread/process to another to terminate

Real world examples