/work-item-repo

Primary LanguageScalaApache License 2.0Apache-2.0

work-item-repo

Download

Enables a microservice to distribute work across it's instances. It can be used as a simplified alternative to SQS, using mongo-repository as the queue.

Installing

Include the following dependency in your SBT build

resolvers += Resolver.bintrayRepo("hmrc", "releases")

libraryDependencies += "uk.gov.hmrc" %% "work-item-repo" % "[INSERT-VERSION]"

How to Use

See How to Use

Compatibility

Library Version Scala Version Play Version
8.x.x 2.12 2.6, 2.7, 2.8
>=7.2.x 2.12 2.6, 2.7
7.x.x 2.11, 2.12 2.6
6.x.x 2.11 2.6, 2.5

work-item-repo since version 6.0.0 uses the latest ReactiveMongo (https://github.com/ReactiveMongo/ReactiveMongo) instead of HMRC fork of it (https://github.com/hmrc/ReactiveMongo). Please review your dependencies if you upgrade. In particular you should no longer use https://github.com/hmrc/Play-ReactiveMongo/ in your microservice.

License

This code is open source software licensed under the Apache 2.0 License.