Skip to content

Commit

Permalink
[quarkus] Config/README update
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarmorling committed Mar 12, 2019
1 parent c4b2f72 commit bc0aa4e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 6 additions & 0 deletions outbox/README.md
@@ -1,11 +1,17 @@
# Outbox Pattern

This example demonstrates the "outbox pattern", an approach for letting services communicate in an asynchronous and reliable fashion.
It accompanies https://debezium.io/blog/2019/02/19/reliable-microservices-data-exchange-with-the-outbox-pattern/[this post] on the Debezium blog.

The sending service ("order-service") produces events in an "outbox" event table within its own local database.
Debezium captures the additions to this table and streams the events to consumers via Apache Kafka.
The receiving service ("shipment-service") receives these events (and would apply some processing based on them),
excluding any duplicate messages by comparing incoming event ids with already successfully consumed ids.

**Update, March 3, 2019:** Another variant of the receiving service has been added, "shipment-service-quarkus",
which is functionally the same as the original one, but is implemented using the https://quarkus.io[Quarkus] stack.
This allows to build a native binary of that service, resulting in significantly less memory usage and faster start-up than the classic version (based on Thorntail).

## Execution

Prepare the Java components:
Expand Down
@@ -1,9 +1,6 @@
bootstrap.servers=localhost\:9092
order.topic.name=OrderEvents

quarkus.datasource.url: jdbc:mariadb://localhost:3306/shipmentdb
quarkus.datasource.url: jdbc:mariadb://shipment-db-quarkus:3306/shipmentdb
quarkus.datasource.driver: org.mariadb.jdbc.Driver
quarkus.datasource.username: mariadbuser
quarkus.datasource.password: mariadbpw
quarkus.hibernate-orm.database.generation=drop-and-create
quarkus.hibernate-orm.log.sql=true
quarkus.hibernate-orm.log.sql=true

0 comments on commit bc0aa4e

Please sign in to comment.