Releases: centrifugal/centrifuge
Releases · centrifugal/centrifuge
v0.32.2
v0.32.1
What's Changed
- Fix WebSocket compression (
io: read/write on closed pipe
) in JSON protocol case, see commit in centrifugal/protocol - Delay initial timer schedule until all ops set by @FZambia in #369 - fixes occasional panic in tests
- Reuse connection timer by @FZambia in #349 - a minor performance optimization
- Dependencies updated
Full Changelog: v0.32.0...v0.32.1
v0.32.0
What's Changed
- Fix: per channel meta ttl for in memory broker by @FZambia in #366. Memory broker did not properly inherit history meta TTL provided on per-call basis - was only looking at globally configured. Now it's fixed
Full Changelog: v0.31.0...v0.32.0
v0.31.0
What's Changed
This is quite a huge release. It has several backwards incompatible changes: in PresenceManager
and Broker
interfaces. Also, SockJS transport was removed. And several nice improvements are here. Check out the details below.
Notable changes
- ❗Embed Gorilla Websocket to Centrifuge internal package by @FZambia in #354 . This was an unfortunate but weighted decision due to poor maintenance of Gorilla WebSocket these days. See the exact motivation in #353.
- ❗SockJS transport was removed - see #352. Note, that since transport in Centrifuge is pluggable - you can still use SockJS in your projects if you need it. You can take SockJS transport implementation from Centrifugo (which is required to keep SockJS until v6 - that's why we still have it there).
- 🔥 Addition of Idempotency key for
Publish
API by @FZambia in #336 . Centrifuge keeps publications with idempotency key set in cache for 5 mins by default and drops publications with the same key. SeeWithIdempotencyKey
andWithIdempotentResultTTL
. Check out how this could be useful in practice in Centrifugo chat/messenger tutorial. This required change inBroker
interfacePublish
method (should not affect most users until they use custom Broker, but simple to adopt otherwise) - 🔥 Maintain user mapping in Redis to speed up presence stats significantly by @FZambia in #343 . This required changes in PresenceManager interface (should not affect most users until they use custom PresenceManager, but simple to adopt otherwise). But the benefit is that we have new option for
RedisPresenceManager
calledEnableUserMapping
- this allows increasing performance ofPresenceStats
call drastically. For channels with huge amount of subscribers the benefit may be up to10000x
better performance. Though more memory may be required on Redis side (up to 2x) since Centrifuge keeps additional data structure in that case. See also related discussion in Centrifugo - 🐍 Python real-time SDK - this is a 6th official real-time SDK in Centrifugal ecosystem. We had this SDK for old versions of Centrifuge/Centrifugo – but now it was revived for the latest protocol and supports all major Centrifugal protocol features.
Other changes
New Contributors ❤️
All API additions/changes
Using gorelease tool:
❯ gorelease -base v0.30.6 -version v0.31.0
# github.com/centrifugal/centrifuge
## incompatible changes
(*MemoryBroker).Publish: changed from func(string, []byte, PublishOptions) (StreamPosition, error) to func(string, []byte, PublishOptions) (StreamPosition, bool, error)
(*MemoryPresenceManager).RemovePresence: changed from func(string, string) error to func(string, string, string) error
(*RedisBroker).Publish: changed from func(string, []byte, PublishOptions) (StreamPosition, error) to func(string, []byte, PublishOptions) (StreamPosition, bool, error)
(*RedisPresenceManager).RemovePresence: changed from func(string, string) error to func(string, string, string) error
Broker.Publish: changed from func(string, []byte, PublishOptions) (StreamPosition, error) to func(string, []byte, PublishOptions) (StreamPosition, bool, error)
NewSockjsHandler: removed
PresenceManager.RemovePresence: changed from func(string, string) error to func(string, string, string) error
SockjsConfig: removed
SockjsHandler: removed
## compatible changes
PublishOptions.IdempotencyKey: added
PublishOptions.IdempotentResultTTL: added
PublishResult.FromCache: added
RedisBrokerConfig.SkipPubSub: added
RedisPresenceManagerConfig.EnableUserMapping: added
WithIdempotencyKey: added
WithIdempotentResultTTL: added
# summary
v0.31.0 is a valid semantic version for this release.
Full Changelog: v0.30.6...v0.31.0
v0.30.6
What's Changed
- Up rueidis to v1.0.22
- Configurable parallelism for benchmarks by @FZambia in #333
- Better chat example styles, demo gif by @FZambia in #334
Full Changelog: v0.30.5...v0.30.6
v0.30.5
v0.30.4
What's Changed
- Remove metric locks to reduce contention in hot paths, frame type and optional channel namespace resolution for transport messages sent/received, new metric to show size of messages sent/received over transport by @FZambia in #325
- Redis reversed history fix when meta does not exist by @FZambia in #328
- Emulation logging tweaks by @FZambia in #326
❯ gorelease -base v0.30.3 -version v0.30.4
# github.com/centrifugal/centrifuge
## compatible changes
Config.ChannelNamespaceLabelForTransportMessagesReceived: added
Config.ChannelNamespaceLabelForTransportMessagesSent: added
Config.GetChannelNamespaceLabel: added
TransportWriteEvent.Channel: added
TransportWriteEvent.FrameType: added
# summary
v0.30.4 is a valid semantic version for this release.
Full Changelog: v0.30.3...v0.30.4
v0.30.3
What's Changed
- Changes for individual subscription streams by @FZambia in #310
- Redis presence code style/layout improvements by @FZambia in #322
❯ gorelease -base v0.30.2 -version v0.30.3
# github.com/centrifugal/centrifuge
## compatible changes
(*Client).WritePublication: added
SubscribeReply.SubscriptionReady: added
# summary
v0.30.3 is a valid semantic version for this release.
Full Changelog: v0.30.2...v0.30.3
v0.30.2
v0.30.1
What's Changed
- up
github.com/redis/rueidis
to v1.0.16 - up
github.com/google/uuid
to v1.3.1
Full Changelog: v0.30.0...v0.30.1