Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Maruszak <maruszaktomasz@gmail.com>
  • Loading branch information
zarusz committed Sep 13, 2023
1 parent 97d6847 commit f0dd354
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ The path to a stable production release:
- :white_large_square: Step 4: Documentation on Raft consensus.
- :white_large_square: Step 5: Other extensions and flavor.

## Docs

- [Introduction](docs/intro.md)

## Packages

| Name | Description | NuGet |
Expand All @@ -46,10 +50,6 @@ The path to a stable production release:
| `SlimCluster.Persistence.LocalFile` | Persists node state into a local JSON file | [![NuGet](https://img.shields.io/nuget/v/SlimCluster.Persistence.LocalFile.svg)](https://www.nuget.org/packages/SlimCluster.Persistence.LocalFile) |
| `SlimCluster.AspNetCore` | ASP.NET request routing to Leader node | [![NuGet](https://img.shields.io/nuget/v/SlimCluster.AspNetCore.svg)](https://www.nuget.org/packages/SlimCluster.AspNetCore) |

## Docs

- [Introduction](docs/intro.md)

## Samples

Check out the [Samples](src/Samples/) folder on how to get started.
Expand All @@ -72,6 +72,12 @@ builder.Services.AddSlimCluster(cfg =>
opts.MulticastGroupAddress = builder.Configuration.GetValue<string>("UdpMulticastGroupAddress")!;
});

// Protocol messages (and logs/commands) will be serialized using JSON
cfg.AddJsonSerialization();

// Cluster state will saved into the local json file in between node restarts
cfg.AddPersistenceUsingLocalFile("cluster-state.json");

// Setup Swim Cluster Membership
cfg.AddSwimMembership(opts =>
{
Expand All @@ -92,12 +98,6 @@ builder.Services.AddSlimCluster(cfg =>
// opts.LogSerializerType = typeof(JsonSerializer);
});

// Protocol messages (and logs/commands) will be serialized using JSON
cfg.AddJsonSerialization();

// Cluster state will saved into the local json file in between node restarts
cfg.AddPersistenceUsingLocalFile("cluster-state.json");

cfg.AddAspNetCore(opts =>
{
// Route all ASP.NET API requests for the Counter endpoint to the Leader node for handling
Expand Down

0 comments on commit f0dd354

Please sign in to comment.