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 6194885 commit 97d6847
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ Currently the only possible transport option is IP protocol, where the inter-Nod

Package: [SlimCluster.Transport.Ip](https://www.nuget.org/packages/SlimCluster.Transport.Ip)

Configures SlimCluster to use the IP/UDP protocol for inter-Node communication.
Configures SlimCluster to use the IP/UDP protocol for inter-node communication.

```cs
cfg.AddIpTransport(opts =>
{
opts.Port = builder.Configuration.GetValue<int>("UdpPort");
opts.MulticastGroupAddress = builder.Configuration.GetValue<string>("UdpMulticastGroupAddress")!;
opts.Port = 60001;
opts.MulticastGroupAddress = "239.1.1.1";
});
```

Expand All @@ -111,7 +111,7 @@ Serialization is needed for protocol messages for inter-Node communication.
Currently the only possible serialization option is JSON.
In the near future there are plans to add [ProtoBuf](https://github.com/protocolbuffers/protobuf) binary serialization for performance and payload size optimization.

To write a custom serializer, simply provide and implementation for [ISerializer](../src/SlimCluster.Serialization/ISerializer.cs) in the MSDI container.
To write a custom serializer, simply provide an implementation for [ISerializer](../src/SlimCluster.Serialization/ISerializer.cs) in the MSDI container.

## JSON Serialization

Expand Down

0 comments on commit 97d6847

Please sign in to comment.