This post’s goal is to provide you with a deeper intuition behind two of the most common software messaging patterns—queues vs. pub/sub. This is a deep topic which deserves thoughtful attention when designing software. This article is structured in three parts:
- Develop an intuition for messaging, queues, and pub-sub through analogies.
- Share a short heuristic to help choose between queues or pub-sub.
- Discuss software implications for each paradigm.