Skip to content

Commit

Permalink
NATS pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
zarusz committed Aug 4, 2024
1 parent 2e9c43c commit 8bbbf3a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ SlimMessageBus is a client façade for message brokers for .NET. It comes with i
- [Hybrid](docs/provider_hybrid.md)
- [MQTT](docs/provider_mqtt.md)
- [Memory](docs/provider_memory.md)
- [NATS](docs/provider_nats.md)
- [RabbitMQ](docs/provider_rabbitmq.md)
- [Redis](docs/provider_redis.md)
- [SQL](docs/provider_sql.md)
Expand All @@ -73,6 +74,7 @@ SlimMessageBus is a client façade for message brokers for .NET. It comes with i
| `.Host.Kafka` | Transport provider for Apache Kafka | [![NuGet](https://img.shields.io/nuget/v/SlimMessageBus.Host.Kafka.svg)](https://www.nuget.org/packages/SlimMessageBus.Host.Kafka) |
| `.Host.Memory` | Transport provider implementation for in-process (in memory) message passing (no messaging infrastructure required) | [![NuGet](https://img.shields.io/nuget/v/SlimMessageBus.Host.Memory.svg)](https://www.nuget.org/packages/SlimMessageBus.Host.Memory) |
| `.Host.MQTT` | Transport provider for MQTT | [![NuGet](https://img.shields.io/nuget/v/SlimMessageBus.Host.MQTT.svg)](https://www.nuget.org/packages/SlimMessageBus.Host.MQTT) |
| `.Host.NATS` | Transport provider for [NATS](https://nats.io/) | [![NuGet](https://img.shields.io/nuget/v/SlimMessageBus.Host.NATS.svg)](https://www.nuget.org/packages/SlimMessageBus.Host.NATS) |
| `.Host.RabbitMQ` | Transport provider for RabbitMQ | [![NuGet](https://img.shields.io/nuget/v/SlimMessageBus.Host.RabbitMQ.svg)](https://www.nuget.org/packages/SlimMessageBus.Host.RabbitMQ) |
| `.Host.Redis` | Transport provider for Redis | [![NuGet](https://img.shields.io/nuget/v/SlimMessageBus.Host.Redis.svg)](https://www.nuget.org/packages/SlimMessageBus.Host.Redis) |
| `.Host.Sql` (pending) | Transport provider implementation for SQL database message passing | [![NuGet](https://img.shields.io/nuget/v/SlimMessageBus.Host.Sql.svg)](https://www.nuget.org/packages/SlimMessageBus.Host.Sql) |
Expand Down
1 change: 1 addition & 0 deletions build/tasks.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ $projects = @(
"SlimMessageBus.Host.RabbitMQ",
"SlimMessageBus.Host.Sql",
"SlimMessageBus.Host.Sql.Common",
"SlimMessageBus.Host.Nats",

"SlimMessageBus.Host.FluentValidation",

Expand Down
8 changes: 4 additions & 4 deletions docs/provider_nats.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

Please read the [Introduction](intro.md) before reading this provider documentation.

- [Underlying Nats client](#underlying-nats-client)
- [Underlying NATS client](#underlying-nats-client)
- [Configuration](#configuration)
- [Message Serialization](#message-serialization)

## Underlying Nats client
## Underlying NATS client

This transport provider uses [Nats.Nets](https://www.nuget.org/packages/NATS.Net) client to connect to the Nats broker.
This transport provider uses [NATS.Nets](https://www.nuget.org/packages/NATS.Net) client to connect to the NATS broker.

## Configuration

Expand All @@ -34,7 +34,7 @@ builder.Services.AddSlimMessageBus(messageBusBuilder =>
```

The `NatsMessageBusSettings` property is used to configure the underlying [Nats.Net library client](https://github.com/nats-io/nats.net).
Please consult the Nats.Net library docs for more configuration options.
Please consult the NATS.Net library docs for more configuration options.

## Message Serialization

Expand Down
10 changes: 5 additions & 5 deletions docs/provider_nats.t.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

Please read the [Introduction](intro.md) before reading this provider documentation.

- [Underlying Nats client](#underlying-nats-client)
- [Underlying NATS client](#underlying-nats-client)
- [Configuration](#configuration)
- [Message Serialization](#message-serialization)

## Underlying Nats client
## Underlying NATS client

This transport provider uses [Nats.Nets](https://www.nuget.org/packages/NATS.Net) client to connect to the Nats broker.
This transport provider uses [NATS.Nets](https://www.nuget.org/packages/NATS.Net) client to connect to the NATS broker.

## Configuration

Expand All @@ -17,8 +17,8 @@ The configuration is arranged via the `.WithProviderNats(cfg => {})` method on t
@[:cs](../src/Samples/Sample.Nats.WebApi/Program.cs,ExampleConfiguringMessageBus)

The `NatsMessageBusSettings` property is used to configure the underlying [Nats.Net library client](https://github.com/nats-io/nats.net).
Please consult the Nats.Net library docs for more configuration options.
Please consult the NATS.Net library docs for more configuration options.

## Message Serialization

Nats offers native serialization functionality. This functionality conflicts with the serialization functionality provided by SlimMessageBus. We have chosen to leave the responsibility for serialization to SlimMessageBus and leave the default configuration of Nats serialization, which is raw serialization. This means that the message body is serialized as a byte array.
Nats offers native serialization functionality. This functionality conflicts with the serialization functionality provided by SlimMessageBus. We have chosen to leave the responsibility for serialization to SlimMessageBus and leave the default configuration of Nats serialization, which is raw serialization. This means that the message body is serialized as a byte array.
2 changes: 1 addition & 1 deletion src/Host.Plugin.Properties.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Import Project="Common.NuGet.Properties.xml" />

<PropertyGroup>
<Version>2.4.2</Version>
<Version>2.4.3-rc1</Version>
</PropertyGroup>

</Project>

0 comments on commit 8bbbf3a

Please sign in to comment.