dotnet / dotNext

Next generation API for .NET
https://dotnet.github.io/dotNext/
MIT License
1.64k stars 123 forks source link

Real world example for DotNext.AspNetCore.Cluster #112

Closed harrison314 closed 2 years ago

harrison314 commented 2 years ago

Hi, i would like to know if you have some real world project example to use DotNext.AspNetCore.Cluster with http transport.

I looked at an example project on https://github.com/dotnet/dotNext/tree/master/src/examples/RaftNode, but the state represented by one long is not very explianing.
Exmple on https://medium.com/microsoftazure/geo-redundant-stateful-service-made-easy-with-asp-net-core-next-and-azure-virtual-machines-950843bb26fd uses old versions of packages.

I'm looking for a examle with the REST API (and swagger), e.g. key-value distributed datbase with get key, insert and delete operation, like configuration store (litte Consul).

sakno commented 2 years ago

You asking for a complete distributed application, not for an example :smile: Example in repository demonstrates key aspects of Raft - leader election and replication. You can take a look at Slik project. It provides distributed cache on top of Raft. Also, contribution is welcome. You can try to update an example in the article you mentioned.

P.S.: This is not a real issues, converting to Discussion.