-
Notifications
You must be signed in to change notification settings - Fork 7
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
[WIP] NATS Streaming Server / STAN support #15
base: develop
Are you sure you want to change the base?
Conversation
Anything I can help out with on this PR? I'm happy to write tests and such if that is what is needed. |
@thedodd Hey! I'll get back to it soon, but feel free to write tests, I'd get them merged against this branch. If I can make a recommendation on how to get started about tests, I'd recommend following the integration tests the NATS team is running: https://github.com/nats-io/node-nats-streaming/tree/master/test |
... moved "todo" comment here to #21. |
@OtaK just saw your response. It wasn't showing up earlier for some reason ... maybe I just needed to refresh |
@OtaK sorry for spamming you so hard on this PR, but while I was doing some code review in this PR, I noticed that the streaming subscription (specifically in the I cross referenced this with the go stan implementation, and that client is built to support “auto ack” or “manual ack”. In order to avoid data loss, manual ack is needed any time where the subscription handler may fail. We should build a pattern for “manual ack” here as well. I need the functionality, so I’ll look into implementing this on my PR. |
No problem! Yeah I know I skipped on this feature, I went down the opinionated route to make stuff easier to implement but seems your use case was not covered. Thanks! |
@OtaK my changes are pretty much done in the PR I opened. Easiest way to review it would be to select only my commits, as there are commits from develop as well (to resolve the conflicts). Let me know if there are any changes you would like to see. I’m happy to iterate on the patterns used. |
Hey Anthony :)
It looks really great, thanks for your efforts even though the lib isn't
really documented so far ! :)
Otak is away for the weekend, he'll probably have a bit of time on Monday
or something, so don't worry if he doesn't reply until then :)
Again thanks a lot for your contribution , I hope he'll review it soon :)
…On Fri, Jan 18, 2019, 20:20 Anthony Dodd ***@***.*** wrote:
@OtaK <https://github.com/OtaK> my changes are pretty much done in the PR
I opened. Easiest way to review it would be to select only my commits, as
there are commits from develop as well (to resolve the conflicts).
Let me know if there are any changes you would like to see. I’m happy to
iterate on the patterns used.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJBvTrSkMMBrgfjK1kPbT8voEAIj7ddNks5vEh53gaJpZM4ZTMNY>
.
|
@o0Ignition0o thanks for the heads up. No rush. |
Good morning! I was wondering what the ETA on this work might be? I've been hunting around for a NATS Streaming library for Habitat, and the non-streaming NATS in this library is working pretty well in my POC. Thanks in advance! |
Hey @christophermaier. If you need to immediately start using nitox streaming, you can update your Cargo.toml to depend on nitox from the repo in this PR: #21
One word of warning, I would recommend that you take a look at issue #24. It is not specific to streaming, but streaming is effected by this issue. If the nitox client is the only Let me know if there is anything I can help out with or clarify. |
74f617f
to
85a4107
Compare
Reporting @thedodd's comment on the todo here for information;
I've merged #21, and rebased the whole branch on develop to get rid of the ugly merge. I guess integration tests are coming up next! I'll study a move on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
It looks like no other commits were made to this PR, and I have been using the branch successfully for a while now with no issues. I neglected to write any tests for the streaming functionality ... that is the only thing that I think we could do. Perhaps we could just open an issue for it though. Add it to one of the milestones perhaps.
I'd really like to have tests ready before merging it. |
I just added the support for the verbose mode! Next step will be writing an integration test suite for STAN / NATS Streaming Server. |
Still some work needed on this.
It pretty much is done, except ending up the support for
verbose
mode which is 3/4 done.Needs integration tests against a STAN server.