Lesson 198 - The Swarm of Gnats Event AntiPattern   
(October 21, 2024)

Knowing how many derived events to trigger from an event processor in event-driven architecture can sometimes be challenging, leading to what is known as the Swarm of Gnats anti-pattern.  Gnats are very small, annoying flying insects that buzz around your head, bothering you enough to go back indoors on a beautiful sunny day. The Swarm of Gnats anti-pattern describes the situation where an event processor triggers too many fine-grained, detailed derived events, just like those annoying gnats you want to just swipe away. This practice can saturate and overwhelm a system, eventually leading to a general lack of understanding of the overall event flows. In this lesson I describe how this anti-pattern can occur, and ways of avoiding this anti-pattern to arrive at the right level of granularity for the number of derived events to trigger from an event processor.

Software Architecture Monday: https://bit.ly/3dadEe3
Head First Software Architecture: https://amzn.to/3VNFI0o
Fundamentals of Software Architecture: https://amzn.to/3rgFLjY
Software Architecture: The Hard Parts: https://amzn.to/3BjMMF2


Back To Lessons      Next Lesson



©2018-2024 DeveloperToArchitect