Skip to content

simple example implementation of the claim check pattern with kafka & min.io

License

Notifications You must be signed in to change notification settings

danphanley/claimcheck

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

simple example implementation of the claim check pattern with kafka & min.io

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 100.0%