The chain of responsibility design pattern should be used when we want to decouple a sender of a request from the receivers and have these receivers separated into their own entities. It is good for creating pipelines and handling events.
What it is good for
Get Scala Design Patterns - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.