0.0.30
Enhancements
- Support cluster and tag based Stream placement
- Support nats error codes in various LoadOrNew functions to make them more reliable and handle the difference between not found and lookup failed
- Handle the new 408 /404 header behaviors in pull consumers
Deprecations
The election
package is marked as being deprecated. This was a POC to implement leader election ontop of JetStream using streams with maximum 1 consumer limits. While functional this is quite a costly way to do elections in API traffic but also in JetStream resources.
A better option is to build an election system using KV buckets and their Create/Update behaviors but at present there is no plans to rewrite this package to support that.
The election
package will be removed after 2 releases.