Introduction to Pub-sub

What is a pub-sub system?

Publish-subscribe messaging, often known as pub-sub messaging, is an asynchronous service-to-service communication method popular in serverless and microservices architectures. Messages can be sent asynchronously to different sub-systems of a system using the pub-sub system. All the services subscribed to the pub-sub model receive the message pushed into the system.

For example, when Cristiano Ronaldo posts on Instagram or shares a tweet, all of his followers are updated. Here Cristiano Ronaldo is the publisher, his post/tweet is the message and all the followers are subscribers.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy