GithubHelp home page GithubHelp logo

bubdm / slimcluster Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zarusz/slimcluster

0.0 0.0 0.0 67 KB

Consensus (Raft) and Memberlist (SWIM) implementation for .NET micro-services

License: Apache License 2.0

C# 100.00%

slimcluster's Introduction

SlimCluster

SlimCluster has the Raft distributed consensus algorithm implemented in .NET. Additionaly, it implements the SWIM cluster membership list (where nodes join and leaves/die).

  • Membership list is required to maintain what micro-service instances (nodes) constitute a cluster.
  • Raft consensus helps propagate state across the micro-service instances and ensures there is an designated leader instance performing the coordination of work.

The library goal is to provide a common groundwork for coordination and consensus of your distributed micro-service instances. With that the developer can focus on the business problem at hand. The library promisses to have a friendly API and pluggable architecture.

The strategic aim for SlimCluster is to implement other algorithms to make distributed .NET micro-services easier and not require one to pull in a load of other 3rd party libraries or products.

This is work in progress!

Gitter GitHub license

Branch Build Status
master Build status
develop Build status
other Build status

Packages

Name Descripton NuGet
SlimCluster The core cluster interfaces NuGet
SlimCluster.Strategy.Raft The Raft algorithm implementation NuGet
SlimCluster.Strategy.Raft.Transport.Tcp Raft RPC implemented with TCP NuGet
SlimCluster.Strategy.Raft.Transport.Redis Raft RPC implemented with Redis Pub/Sub NuGet
SlimCluster.Membership The membership core interfaces NuGet
SlimCluster.Membership.Swim The SWIM membership algorithm implementation NuGet
SlimCluster.Membership.Redis The membership implementation based on Redis Pub/Sub NuGet

Samples

Check out the Samples folder.

License

Apache License 2.0

Build

cd src
dotnet build
dotnet pack --output ../dist

NuGet packaged end up in dist folder

Testing

To run tests you need to update the respective appsettings.json to match your own cloud infrstructure or local infrastructure.

Run all tests:

dotnet test

Run all tests except integration tests which require local/cloud infrastructure:

dotnet test --filter Category!=Integration

slimcluster's People

Contributors

zarusz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.