Object-Oriented Programming · Amazon · Medium
Requirements Design a broker that supports the following behavior: Functional: subscribe(subscriber, topic) adds a subscriber's interest in a named topic. unsubscribe(subscriber, topic) removes that interest. publish(topic, message) sends the message payload to every subscriber currently registered for that topic. The design must handle several topics, many subscribers on one topic, and subscribers registered for multiple topics. In a single-machine extension, each…
Checking your access…