om-legion: Legion Framework.

[ library, mit, network, program ] [ Propose Tags ]

Framework for managing shared, replicated state across a number of homogeneous nodes.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 6.9.0.3
Dependencies aeson (>=2.0.3.0 && <2.1), async (>=2.2.4 && <2.3), base (>=4.15.0.0 && <4.16), binary (>=0.8.8.0 && <0.9), bytestring (>=0.10.12.1 && <0.11), clock (>=0.8.3 && <0.9), conduit (>=1.3.4.2 && <1.4), containers (>=0.6.4.1 && <0.7), crdt-event-fold (>=1.8.0.0 && <1.9), data-default-class (>=0.1.2.0 && <0.2), hostname (>=1.0 && <1.1), hspec (>=2.8.5 && <2.9), http-api-data (>=0.4.3 && <0.5), lens (>=5.0.1 && <5.1), lens-aeson (>=1.1.3 && <1.2), monad-logger (>=0.3.36 && <0.4), mtl (>=2.2.2 && <2.3), mustache (>=2.4.1 && <2.5), network (>=3.1.2.7 && <3.2), om-fork (>=0.7.1.3 && <0.8), om-kubernetes (>=2.3.1.3 && <2.4), om-legion, om-logging (>=1.1.0.1 && <1.2), om-show (>=0.1.2.1 && <0.2), om-socket (>=0.11.0.1 && <0.12), om-time (>=0.3.0.0 && <0.4), random-shuffle (>=0.0.4 && <0.1), safe (>=0.3.19 && <0.4), safe-exceptions (>=0.1.7.3 && <0.2), stm (>=2.5.0.0 && <2.6), template-haskell (>=2.17.0.0 && <2.18), text (>=1.2.5.0 && <1.3), time (>=1.9.3 && <1.10), transformers (>=0.5.6.2 && <0.6), unix (>=2.7.2.2 && <2.8), unliftio (>=0.2.22.0 && <0.3), unliftio-core (>=0.2.0.1 && <0.3), uuid (>=1.3.15 && <1.4), vector (>=0.12.3.1 && <0.13) [details]
License MIT
Copyright 2022 Owens Murray, LLC.
Author Rick Owens
Maintainer rick@owensmurray.com
Category Network
Home page https://github.com/owensmurray/om-legion
Uploaded by rickowens at 2022-10-11T03:25:26Z
Distributions NixOS:6.9.0.3
Executables om-legion-test-profile, om-legion-test-stable, om-legion-test-inc, om-legion-test-run, om-legion-test-driver, om-legion-test-node
Downloads 22 total (6 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for om-legion-6.9.0.3

[back to package description]

om-legion

Legion is framework for building clusters of homogenous nodes that must maintain a shared, replicated state.

For instance, maybe in order to scale a service you are using a partitioning strategy to direct traffic for users A-H to node 1, users I-Q to node 2, and R-Z to node 3. The partition table itself is something all the nodes have to agree on and would make an excellent candidate for the "shared, replicated state" managed by this framework.

To update the shared state, whatever it is, use:

  • applyFast
  • or applyConsistent

Additionally, since Legion already has to understand about different nodes in the cluster, and how to talk to them, we provide a variety of tools to help facilitate inter-node communication:

  • cast: We support sending arbitrary messages to other peers without waiting on a response.

  • call: We support sending requests to other peers that block on a response.

  • broadcast: We support sending a message to every other peer without waiting on a response

  • broadcall: We support sending a request to every other peer, and blocking until we recieve a response from them all.