v1.3.0 #91
Closed
mochi-co
announced in
Announcements
v1.3.0
#91
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What's Changed - The Big Inflight Messages Release
Full Changelog: v1.2.3...v1.3.0
In Discussion Inflight messages cleaning #76 and Issue Stale inflight messages #86 we discovered that for some cases, inflight messages were able to accumulate with no way of purging them from memory or the persistence store (if in use).
The main reasons this occurred were:
To this end, the following changes have been implemented:
InflightTTL
option specifying the number of seconds an unresolved message should be kept before being dropped. A new case has been added to the internal event loop to periodically scan the client inflight messages memory and delete any expired inflight messages based on this value.ClearExpiredInflight(expiry int64) error
method for clearing expired inflight messages in layers which do not support native TTL solutions (bolt), and asetInflightTTL
method used to automatically propagate the known inflight TTL from the server to persistence layers. These interface changes are breaking changes, and as such the minor version has been increased to 3.For those wishing the set the TTL of their inflights to a specific value,
examples/tcp/main.go
has an demonstration:With huge thanks to @Flaer and @bkupidura for their work investigating this issue.
As usual, please open an issue with any concerns, bugs, or ideas! :)
Tests
This discussion was created from the release v1.3.0.
Beta Was this translation helpful? Give feedback.
All reactions