dotnet / dotNext

Next generation API for .NET

Home Page:https://dotnet.github.io/dotNext/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document recommended pattern for cluster members configuration

davhdavh opened this issue · comments

https://dotnet.github.io/dotNext/features/cluster/raft.html#network-transport mentions how it can be done for tcp/udp, but there doesn't seem to be anywhere it is documented what the recommended pattern is for aspnetcore.
Only place I can find specifically says it is not recommended to do in production https://github.com/dotnet/dotNext/blob/master/src/examples/RaftNode/Startup.cs#L63

commented

In case of ASP.NET Core, all capabilities available through DI. If you want to add/remove members dynamically, use API provided by IRaftHttpCluster interface. It exposes the same pair of AddMemberAsync/RemoveMemberAsync methods.