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 functionality.

When a user registers, we need to send them an email, generate some suggestions for them… and to make the code easier to modify and test, we introduce an in-memory Event Bus.

Then there comes a point where we cannot afford for everything to execute sequentially, we need asynchronicity for those derived cases.

At that moment, the most common thought is to consider 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 it.

In this way, the friction is minimal. For this, we explore:

  • 💣 Different alternatives on how to publish and consume messages
  • 💻 How to generate all the parts 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
Popular

standard

24,92 €
Save vs monthly of 49 €
Annual payment of 299
per month
  • Main catalog to master writing maintainable, scalable, and testable code
  • Receive job offers verified by Codely
  • Company invoice

premium

41,58 €
Save vs monthly of 89 €
Annual payment of 499
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

We won't increase the price while your subscription is active

Course of Event Bus in a Database [Infrastructure Design] ﹤🍍﹥ Codely