OfX-Nats is an extension package for OfX that leverages Nats for efficient data transportation. This package provides a high-performance, strongly-typed communication layer for OfX’s Attribute-based Data Mapping, enabling streamlined data retrieval across distributed systems.
Nats-based Transport: Implements Nats to handle data communication between services, providing a fast, secure, and scalable solution.
To install the OfX-Nats package, use the following NuGet command:
dotnet add package OfX-Nats
Or via the NuGet Package Manager:
Install-Package OfX-Nats
Add OfX-Nats to your service configuration during application startup:
For Client:
builder.Services.AddOfX(cfg =>
{
cfg.AddContractsContainNamespaces(typeof(SomeContractAssemblyMarker).Assembly);
cfg.AddNats(config => config.Url("nats://localhost:4222"));
});
...
var app = builder.Build();
app.Run();
Note:
OfX-Nats uses subjects that start with OfX-[OfXAttribute metadata]
. Therefore, you should avoid using other
subjects.
That All, enjoy your moment!
Package Name | Description | .NET Version | Document |
---|---|---|---|
Core | |||
OfX | OfX core | 8.0, 9.0 | ReadMe |
Data Providers | |||
OfX-EFCore | This is the OfX extension package using EntityFramework to fetch data | 8.0, 9.0 | ReadMe |
OfX-MongoDb | This is the OfX extension package using MongoDb to fetch data | 8.0, 9.0 | ReadMe |
Integrations | |||
OfX-HotChocolate | OfX.HotChocolate is an integration package with HotChocolate for OfX. | 8.0, 9.0 | ReadMe |
Transports | |||
OfX-gRPC | OfX.gRPC is an extension package for OfX that leverages gRPC for efficient data transportation. | 8.0, 9.0 | ReadMe |
OfX-Kafka | OfX-Kafka is an extension package for OfX that leverages Kafka for efficient data transportation. | 8.0, 9.0 | ReadMe |
OfX-Nats | OfX-Nats is an extension package for OfX that leverages Nats for efficient data transportation. | 8.0, 9.0 | This Document |
OfX-RabbitMq | OfX-RabbitMq is an extension package for OfX that leverages RabbitMq for efficient data transportation. | 8.0, 9.0 | ReadMe |