Course of Event Bus in a Database [Infrastructure Design]
Add scalability by using your own database as an event bus.
💸 First lesson available without registration 💸
There comes a time when our applications need to scale in terms of functionalities.
When a user registers, we have to send them an email, generate some suggestions... and to make the code easier to modify and test, we introduce an in-memory Event Bus.
Then comes a point where we cannot afford for everything to execute sequentially, we need asynchrony for those derived cases.
At that moment, it is common to think about adding a messaging system like RabbitMQ, AWS Event Bridge, or Kafka, but that requires adding a new piece of infrastructure.
In this course, we explore another way: Using our own database for this.
This way, the friction is minimal. To achieve this, we’ll explore:
- 💣 Different alternatives for how to publish and consume messages
- 💻 How to generate all the pieces we can automatically
- 🔥 How to manage errors with retries and dead letters
All of this questioning why we use the architecture we use and seeing its alternatives.

Videos of the course
Related courses
Pay according to your needs
lite (only monthly)
- Essential programming courses to build a solid foundation
- Company invoice
standard
- Main catalog to master writing maintainable, scalable, and testable code
- Receive job offers verified by Codely
- Company invoice
premium
- Exclusive AI courses to keep you always up to date
- Early access to new courses
- Discount on workshops
- Receive job offers verified by Codely
- Company invoice