Course of Event Bus in a Database [Infrastructure Design]

Javier FerrerRafa Gómez

By Javier Ferrer y Rafa Gómez Software Design and Architecture

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.

Related courses

Pay according to your needs

lite (only monthly)

19 €
per month
Save 70 €

standard

19,08 €
Save vs monthly of 49 €
Save 70 € with Black Friday
Annual payment of 229
per month
  • Main catalog to master writing maintainable, scalable, and testable code
  • Receive job offers verified by Codely
  • Company invoice
Save 70 €

premium

35,75 €
Save vs monthly of 89 €
Save 70 € with Black Friday
Annual payment of 429
per month
  • 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
Course of Event Bus in a Database [Infrastructure Design] ﹤🍍﹥ Codely