Skip to content

janbols/idempotent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

idempotent

Trait for making a method call idempotent.

This can be used for instance for listeners listening for an event. The messaging infrastructure guarantees at-least-once delivery so it's possible that the call to the listener is done more than once. One possibility is to make the listener itself idempotent by keeping a record of the events it handled. This is the approach used here.

See the unit test for a working example.

About

Trait for making a method call idempotent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages