vinceveve / nats-jetstream-transport Goto Github PK
View Code? Open in Web Editor NEWLicense: ISC License
License: ISC License
Hello ๐
Thanks for creating this library (or forking and improving). I'm just getting started with Jetstream and decided to give this library a try instead of re-writing my own Nats Streaming strategy for Jetstream. I have a feature request if you are taking them? Please see below.
Add an option to the ServerConsumerOptions
automatically ack messages if the subscriber function executes successfully (e.g. automaticAck: true | false (Default: false)
).
If ServerConsumerOptions. manualAck
= true
there is no need to invoke the context.message.ack()
within each subscriber method which becomes repetitive. Developers will have the option to enable this and not have to add the ack code to each method they wish to manually ack.
This could be taken a step further by adding an additional setting that supports the nak(millis?)
option to tell nats to wait (or not) and resend the message but I'm getting ahead of myself.
Add the NatsJetStreamServer
(line 103) when the message is sent to the eventHandler
by subscribing to the Observable
and checking if manualAck
is true
then automatically ack'ing the message.
Please let me know if you have questions. I'm happy to contribute and submit a PR if you are accepting them.
Thanks,
Derek
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.