educative.io

What exactly is broker defined in pub-sub chapter?

Is broker a server or node which is defined in pub-sub system? I didn’t get what exactly do we mean by broker


Course: Grokking Modern System Design Interview for Engineers & Managers - Learn Interactively
Lesson: Design of a Pub-sub System - Grokking Modern System Design Interview for Engineers & Managers

Hi Ravish.

A broker is a core component in a pub-sub system handling all read and write requests. Usually, the broker component is a set of servers, which handle all the publishing and subscription requests. We use multiple servers to eliminate the issue of a single point of failure, hence improving availability.

If you have any further questions, feel free to reach out to us.

Thank you.

But what exactly contains a broker? because as is, it looks like it mostly contains references to other brokers that contains the different partitions of a specific Topic.

So when we say that a broker contains Topics, are we saying instead that a broker contains partition of a topic at most?


Course: Grokking Modern System Design Interview for Engineers & Managers - AI-Powered Learning for Developers
Lesson: Design of a Pub-sub System - Grokking Modern System Design Interview for Engineers & Managers