Popularity
4.1
Growing
Activity
0.0
Stable
4
4
1
Monthly Downloads: 13
Programming language: Haskell
License: MIT License
Tags:
Concurrency
roundRobin alternatives and similar packages
Based on the "Concurrency" category.
Alternatively, view roundRobin alternatives based on common mentions on social networks and blogs.
-
haxl
A Haskell library that simplifies access to remote data, such as databases or web-based services. -
unagi-chan
A haskell library implementing fast and scalable concurrent queues for x86, with a Chan-like API -
timers
Simple package that implements timers. Both "one-shot" and "repeating" timers are implemented.
WorkOS - The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Promo
workos.com
Do you think we are missing an alternative of roundRobin or a related project?
README
A simple round-robin data type
This package provide a simple data type wrap a round-robin table. so you can select resources(host, connection...) using round-robin fashion.
Example
import qualified Date.RoundRobin as RR
import qualified Network.HTTP.Client as HTTP
main :: IO ()
main = do
reqs <- mapM HTTP.parseUrl ["http://foo.com", "http://bar.com", "http://qux.com"]
proxyTable <- RR.newRoundRobin reqs
manager <- HTTP.newManager HTTP.defaultManagerSettings
...
-- maybe now you're inside a server service(a forked thread)
-- use select to choose a request in round-robin fashion
req <- RR.select proxyTable
res <- HTTP.httpLbs req manager
...