nats-architecture-and-design
nats-architecture-and-design copied to clipboard
Add reconnect method
Overview
Client should have a way that allows users to force reconnection process. This can be useful for refreshing auth or rebalancing clients.
When triggered, client will drop connection to the current server and perform standard reconnection process. That means that all subscriptions and consumers should be resubscribed and their work resumed after successful reconnect where all reconnect options are respected.
For most clients, that means having a reconnect
method on the Client/Connection handle.
Connection spec has bee updated in #258
Clients and Tools
- [ ] Go @piotrpio
- [x] Java @scottf https://github.com/nats-io/nats.java/pull/1100
- [x] JavaScript @aricart
- [x] .Net @scottf https://github.com/nats-io/nats.net/pull/906
- [ ] C @levb
- [ ] Python @wallyqs
- [ ] Ruby @wallyqs
- [x] Rust @Jarema
- [ ] .Net V2 @mtmk
- [x] Swift @Jarema @piotrpio
Other Tasks
- [ ] docs.nats.io updated @bruth
- [ ] Update ADR to
Implemented
- [ ] Update client features spreadsheet
Client authors please update with your progress. If you open issues in your own repositories as a result of this request, please link them to this one by pasting the issue URL in a comment or main issue description.
Hi, Team!
This is min.k from Hyperconnect (Paid customer).
Please also add nats.swift to the target libraries that add this feature.
And please add nats.ws!
Nats.ws is covered here by the Javascript client. All js clients share the API codebase @pkgonan