An in-memory event bus is not a good idea. Typically you'd see an in-memory event bus used for publishing domain events to notify other parts of your domain, which is done in-process. If you're in the .NET Space, an example of this is the library MediatR. Let me explain the pros and cons of an in-memory bus and why the downsides far outweigh the benefits.
🔗 EventStoreDB
https://eventsto.re/codeopinion
🔔 Subscribe: https://www.youtube.com/channel/UC3RKA4vunFAfrfxiJhPEplw?sub_confirmation=1
💥 Join this channel to get access to a private Discord Server and any source code in my videos.
🔥 Join via Patreon
https://www.patreon.com/codeopinion
✔️ Join via YouTube
https://www.youtube.com/channel/UC3RKA4vunFAfrfxiJhPEplw/join
📝 Blog: https://codeopinion.com
👋 Twitter: https://twitter.com/codeopinion
✨ LinkedIn: https://www.linkedin.com/in/dcomartin/
📧 Weekly Updates: https://mailchi.mp/63c7a0b3ff38/codeopinion
0:00 Intro
0:41 In-Memory Event Bus
3:40 Example
5:21 Retries
7:31 Out of Process
#softwarearchitecture #softwaredesign #eventdrivenarchitecture