nats.net
nats.net copied to clipboard
Proposal: Real-World Examples and Setup for Long-Lived Services
Problem Statement: Users coming from other messaging platforms (e.g. RabbitMQ, Masstransit) might find it challenging to register NATS constructs (e.g. consumers) and process messages in the current setup. Most examples and samples provided are overly simplistic, often showcasing a single consumer in a console application. There is a need for more realistic examples, particularly for long-lived services with multiple consumers.
Proposed Enhancements:
- Provide More Real-World Examples: Create examples that demonstrate the setup of multiple consumers within a long-lived service. Include scenarios that show how to handle faults and ensure the resilience of the service.
- Improve Documentation: Expand the documentation to cover dependency injection (and others e.g. OTEL?) in a .NET hosting context. Provide detailed guides and best practices for setting up and managing multiple consumers efficiently.
- Propose Extension: We have dependency injection extensions, for example. Maybe we can come up with other extensions to the NATS .NET ecosystem (managed by nats.io or other projects).
Benefits:
- Eases the transition for users familiar with other messaging systems to adopt and implement the current technology.
- Enhances the reliability and resilience of long-lived services using the provided examples.
- Improves overall user experience by reducing the complexity of setting up NATS in real-world applications.