Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 933 Bytes

README.md

File metadata and controls

26 lines (15 loc) · 933 Bytes

Kafka claim check pattern example

Sending large amounts of large messages directly through Kafka is not recommended. It is better to offload the message payload and transport the reference to this payload through Kafka.

This is known as the claim check pattern.

This example contains a simple implementation of the concept using Min.io, an S3-compatible object store.

run tests

> sbt dockerComposeTest

caveat

The implementation demonstrates a naive approach. In order to be used in production, more aspects need to be covered, e.g.:

  • error handling
  • authentication
  • retention
  • metadata

Sometimes, if the test fails, the docker containers will not be stopped. You will need to stop them manually.

> docker ps -q | xargs docker stop

have fun and help improve the project with your pull requests