Centrifugo v3.2.0 Release Notes

  • This release contains backwards incompatible changes in experimental Tarantool engine (see details below).

    ๐Ÿ‘Œ Improvements

    • ๐Ÿ‘Œ Support checking aud and iss JWT claims #496. See more details in docs: aud, iss.
    • ๐Ÿ“„ Channel Publication now has tags field (map[string]string) โ€“ this is a map with arbitrary keys and values which travels with publications. It may help to put some useful info into publication without modifying payload. It can also help to avoid processing payload in some scenarios. Publish and broadcast server APIs got support for setting tags. Though supporting this field throughout our ecosystem (for example expose it in all our client SDKs) may take some time. Server API docs for publish and broadcast commands have been updated.
    • ๐Ÿ‘Œ Support setting user for Redis ACL-based auth, for Redis itself and for Sentinel. See in docs.
    • ๐Ÿ“„ Unidirectional transports now return a per-connection generated session unique string. This unique string attached to a connection on start, in addition to client ID. It allows controlling unidirectional connections using server API. Previously we suggested using client ID for this โ€“ but turns out it's not really a working approach since client ID can be exposed to other users in Publications, presence, join/leave messages. So backend can not distinguish whether user passed its own client ID or not. With session which is not shared at all things work in a more secure manner. Server API docs for subscribe, unsubscribe, disconnect and refresh commands have been updated.
    • ๐Ÿ‘€ Report line and column for JSON config file syntax error โ€“ see #497
    • ๐Ÿ‘Œ Improve performance (less memory allocations) in message broadcast, during WebSocket initial connect and during disconnect.

    ๐Ÿ’ฅ Breaking changes

    • ๐Ÿ’ฅ Breaking change in experimental Tarantool integration. In Centrifugo v3.2.0 we updated code to work with a new version of tarantool-centrifuge. tarantool-centrifuge v0.2.0 has an updated space schema. This means that Centrifugo v3.2.0 will only work with tarantool-centrifuge >= v0.2.0 or rotor >= v0.2.0. We do not provide any migration plan for this update โ€“ spaces in Tarantool must be created from scratch. We continue considering Tarantool integration experimental.


    • ๐Ÿš€ This release is built with Go 1.17.9.
    • ๐Ÿ‘ We continue working on client protocol v2. Centrifugo v3.2.0 includes more parts of it and includes experimental bidirectional emulation support. More details in #515.
    • Check out our progress regarding Centrifugo v4 in #500.
    • ๐Ÿ†• New community-driven Centrifugo server API library Centrifugo.AspNetCore for ASP.NET Core released.