Publisher Subscriber Pattern - Build your own .NET Message Broker

Опубликовано: 22 Октябрь 2024
на канале: Les Jackson
26,436
840

In this video we take a look at the Publisher / Subscriber pattern (otherwise know as Pub/Sub) that's used to facilitate distributed systems interactions in a decoupled way. To fully explore this topic, we build a Message Broker app step by step, then introduce an additional lightweight subscriber app.

🌐 Links 🌐

💾 GitHub Repo: https://github.com/binarythistle/S06E...
🎓 My other courses: https://lesjackson.net
📕 My Book: https://link.springer.com/book/10.100...
🤩 Patreon:   / binarythistle  
🌲 Linktree: https://linktr.ee/binarythistle

🔗 Publisher Subscriber Pattern: https://learn.microsoft.com/en-us/azu...
🔗 Installing EF Core Tools: https://learn.microsoft.com/en-us/ef/...
🔗 DBeaver: https://dbeaver.io/download/


⏲️ Time Codes ⏲️

Introduction & Theory
----------------------------------
0:42 - Welcome
1:15 - Demo
5:05 - Call to action
5:42 - Theory
9:23 - Solution Architecture
12:01 - Scaffold the Broker
16:11 - Data Model
19:17 - Message State

Message Broker Coding
---------------------------------------
20:30 - Models
25:52 - DB Context
30:51 - Migrations
33:48 - DBeaver
35:38 - Endpoints overview
37:12 - Create Topic Endpoint
41:12 - Get Topics Endpoint
42:54 - Create & Get Topics with Insomnia
46:10 - Publish Message Endpoint
55:14 - Test Publish #1
57:37 - Create Subscription
1:02:02 - Test Subscription Create
1:03:49 - Re test publish message
1:05:02 - Get messages for subscription
1:11:06 - Test get messages endpoint
1:15:53 - Acknowledgement endpoint
1:21:14 - Text ack endpoint

Subscriber Coding
------------------------------
1:23:28 - Scaffold Subscriber
1:25:04 - Message Read DTO
1:27:12 - Read Messages function
1:34:37 - Acknowledge messages function
1:37:36 - Polling routine
1:40:51 - End to End testing
1:44:44 - Patreon Credits