Publish Subscribe Messaging In .NET With Redis Channels



Publish Subscribe Messaging In .NET With Redis Channels

Publish Subscribe Messaging In .NET With Redis Channels

Support me on Patreon to access the source code:
https://www.patreon.com/milanjovanovic

What is the Publish Subscribe pattern?

The Publish-Subscribe pattern is a messaging pattern, where a Publisher sends messages to a common channel, and Subscribers can listen to messages coming from that channel. It’s common to have one Publisher and more than one Subscriber. If you are building a distributed system, you will most likely work with the Publish Subscribe pattern.

Join my weekly .NET newsletter:
https://www.milanjovanovic.tech

Read my Blog here:
https://www.milanjovanovic.tech/blog

Subscribe for more:
https://www.youtube.com/@MilanJovanovicTech?sub_confirmation=1

Chapters
0:00 Worker services overview
0:51 How we can use Redis for Pub/Sub messaging
1:28 Installing the StackExchange.Redis library
2:00 Publishing messages to the Redis channel
5:19 Subscribing to messages from the Redis channel
6:43 Running Redis locally with Docker
7:30 Pub/Sub messaging with Redis channels in action
8:35 Sending JSON messages with Redis channels
11:47 Are Redis channels reliable?