philippabele / cockroack-db-notes

0 stars 0 forks source link

Event-Driven Architecture for Java Developers #11

Open philippabele opened 1 year ago

philippabele commented 1 year ago

Summarize the following topics:

This is known as the Dual-Write problem. It is a potential source of inconsistency.

Avoid the Dual-Write problem using a Transactional Outbox.

philippabele commented 1 year ago

The Dual-Write Problem: It occurs when two independent systems need to be updated in a transactional manner.

philippabele commented 1 year ago

Using the Transactional Outbox Pattern allows us to guarantee that every message will be published: At least once

philippabele commented 1 year ago

Building systems of events is advantageous because:

philippabele commented 1 year ago

Messages come in three types:

philippabele commented 1 year ago

Outbox Table