Skip to content

vermas7988/cats-concurrency-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ Common Concurrency utils with cats effect

๐Ÿ“– Overview

  • The RequestRegistry is a utility to manage asynchronous requests and responses. It leverages Cats Effect's Deferred to handle responses in a decoupled manner, allowing parts of a program to submit some requestIDs and other parts to receive responses and satisfy the requests submitted in this registry.
  • LoadBalancer is a utility to divide and queue work to different servers.

Docs WIP but code is readable and api is user-friendly.

Not published on maven yet, just copy paste the examples and tailor according to your project.

โœจ Features

  • ๐Ÿ“ Register requests and await responses.
  • โœ… Complete requests with responses from different parts of the program.
  • ๐Ÿ›  Built using Cats Effect.

๐Ÿ› ๏ธ Usage

๐Ÿ“ฆ Adding the Dependency

To use the RequestRegistry library in your project, you need to add the Cats Effect library to your build.sbt file.

โš ๏ธ Caution

Note: This is not a managed library and rather use it as a code example. You can adapt and integrate this code into your projects as needed.

๐Ÿ“œ License

This library is licensed under the MIT License (not really, it is just a code example).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages