-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal: Real-World Examples and Setup for Long-Lived Services #568
Comments
I am facing a similar problem while running multiple NATS jetstream consumers as background operations in .net webapi. Feel like dependency injection operations would also be difficult in this. Comming from Masstransit RabbitMq world implementing these operations are quite easy over there. |
Suggestions for samples:
|
I just came up with a fun/useful idea! General thought, what if we could use Jetstream and/or KV (I'm thinking primarily KV here) for implementing a JWT As a background, My general thought being, a service could take in JTIs along with an expiration time, and then return whether the JTI has been used or not. The assumption being, the consumer will be pre-checking expiration as part of normal JWT flow, so one could set an expiration time on the buicket of the ceiling for JWT lifetime. I'm pretty sure it would be fairly easy to wire up, also could be expandable to something like 'use NATS in ASPNETCORE middleware' case. (I'm willing to give this a crack but if someone else wants to beat me to it, all the better.) |
Those are some great examples to consider! Maybe a section in https://natsbyexample.com that is focused on Real-World examples would be a good idea, maybe some other medium. |
I think eventually we should be able to implement something like TestShop only using NATS |
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:
Benefits:
The text was updated successfully, but these errors were encountered: