Skip to content

Commit

Permalink
docs: add logo
Browse files Browse the repository at this point in the history
  • Loading branch information
bibendi committed Apr 23, 2024
1 parent e8bb073 commit 17b5165
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Binary file added .github/outbox-logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -3,6 +3,8 @@

# Sbmt-Outbox

<img src="https://raw.githubusercontent.com/SberMarket-Tech/sbmt-outbox/master/.github/outbox-logo.png" alt="sbmt-outbox logo" height="140" />

Microservices often publish messages after a transaction has been committed. Writing to the database and publishing a message are two separate transactions, so they must be atomic. A failed publication of a message could lead to a critical failure of the business process.

The Outbox pattern provides a reliable solution for message publishing. The idea behind this approach is to have an "outgoing message table" in the service's database. Before the main transaction completes, a new message row is added to this table. As a result, two actions take place as part of a single transaction. An asynchronous process retrieves new rows from the database table and, if they exist, publishes the messages to the broker.
Expand Down

0 comments on commit 17b5165

Please sign in to comment.