Just a second...

What's new in Diffusion 6.13?

The latest version of Diffusion™ contains new features, performance enhancements and bug fixes.

A complete list of the latest updates and known issues can be found in the Release Notes available at http://docs.diffusiondata.com/docs/6.13.0/ReleaseNotice.html

See Upgrading from version 6.12 to version 6.13 for considerations when upgrading to release 6.13.

Improved Default Reconnection Strategy

Previously, if reconnection was enabled for a session and no reconnection strategy was specified, a default strategy that tried to reconnect every 5 seconds was used. This had the disadvantage that if many sessions disconnected at once, they would all try to reconnect at the same time, causing a flood of reconnection requests that could overload the server.

The default strategy has been improved to use a random delay before each attempt, using a window that widens by 5 seconds after each try: 0-5 seconds, 5-10 seconds, 10-15 seconds, and so on, capping at 25-30 seconds. Attempts continue at that maximum window until the reconnection timeout expires.

Connection Credentials no Longer Passed in HTTP Headers or Query Parameters

Previously, connection and reconnection protocols used HTTP headers and URI query parameters to encode the connection request details. These could easily leak into diagnostic logging, middlebox logs, and so on.

To avoid these problems, the protocol has been changed to serialise the parameters as an initial binary frame. Older client versions will still be able to connect using the previous protocol, but new 6.13 (and later) clients connect using the new, more secure protocol.

Session Cookie Support for Sticky Load Balancing

From this release, Diffusion supports the Set-Cookie HTTP response header for inbound sessions. The value of this cookie corresponds to the server-assigned session ID, in the form session=<session-id>.

This allows applications to make better use of session-sticky load balancing, and opens up use cases for client-side state management.

For 6.13, only the Java™ client supports this. Support for other SDKs will be added in a future release.

Reconnection Strategies Now Know the Attempt Number

Previously, a reconnection strategy implementation could determine when the next reconnection attempt should be made, or whether reconnection should be abandoned, but the reconnection attempt object passed to the strategy did not indicate which attempt was being tried. This made it difficult to implement a sensible backoff policy.

At this release, the reconnection attempt is provided with the attempt number, so that a custom strategy can behave differently according to the attempt being made.

Improved Retry Strategy in the JavaScript Client

Provision for supplying a retry strategy within the JavaScript® client has been extended. Retry logic applies both during the initial connection attempt and when handling recoverable update stream errors.

Previously, retry logic could only be described using a strategy object containing interval and attempts parameters. It is now also possible to provide a controlling function, which is invoked at runtime with the active retry count. This allows for dynamic control of the retry interval, supporting a custom backoff strategy, for example.

Reconnection in the Python SDK

The Python SDK now supports reconnection. As in the other SDKs, Python sessions reconnect by default, using the improved default reconnection strategy described above, and custom reconnection strategies are given the attempt number. For more information, see Specifying a reconnection strategy.

Reconnection is also available in the Python SDK from release 6.12.2, where a reconnection strategy must be set for a session to reconnect.

Python 3.13 and 3.14 Support

The Python SDK now supports Python 3.13 and 3.14, in addition to Python 3.10, 3.11 and 3.12.

Automatic Topic Removal Now Allows a Branch to be Removed

When specifying an automatic topic removal policy for a topic, it is now possible to specify remove branch, which causes the topic and all of its descendants to be removed when the conditions are satisfied.

This is simpler than specifying a topic selector that identifies the topic and its descendants, and can also save memory at the server, as the same removal specification can be reused for many different branch root topics. For more information, see Removing topics automatically.

Time Series Subscriptions Only Provide Current Events

Previously, a session subscribing to a time series topic with a non-default TIME_SERIES_SUBSCRIPTION_RANGE could be sent a stale original event as well as the latest edit. This was inefficient, and allowed sessions without the QUERY_OBSOLETE_TIME_SERIES_EVENTS permission to see obsolete events.

From this release, only current events are delivered to new subscribers.

Quorum Recommended Warnings

Cluster configuration validation checks have been added. When running in a cluster configuration, Diffusion now performs the following checks:

  • If the default Hazelcast cluster name ('dev') is in use, a log message recommends changing it to a more appropriate name.
  • If topic replication is enabled without quorum, a log message recommends enabling quorum for topic replication.

HTTP Redirect Handling

All Diffusion SDKs now handle HTTP redirects correctly when connecting to the server.

Remote Server Logging Improvements

Previously, remote server connections logged messages at ERROR level on a secondary server if a transient error occurred while connecting to a primary server, or if a connection to a primary server was lost. As both situations are recoverable and automatically retried, logging them as errors was misleading.

At this release, transient connection failures (PUSH-000810) and lost connections (PUSH-000811) are always logged at WARN level. Two new error messages (PUSH-000995 and PUSH-000996) have been added to represent unrecoverable errors that may require manual intervention.

Querying Remote Server State Without Reconnecting

Previously, using the checkRemoteServer operation in the RemoteServers feature would attempt to reconnect a failed remote server connection. This was also the case when querying remote servers in the Diffusion Console.

At this release, a new getRemoteServerState operation (in the Java , JavaScript , and .NET SDKs) returns the current remote server state without attempting to retry the connection. The Console has also been updated to provide both capabilities.

Performance Improvements

Performance improvements in this release focus on persistence restore, topic views, server-side lock contention, and connection handling under load.

Topic persistence restore now uses batched loading with adaptive backpressure and tuned IO scheduling, reducing GC pauses and speeding up server startup after both cold and warm restarts. A related fix removes a snapshot corruption risk that could occur when restore tasks were interleaved.

The performance of topic views has also been improved significantly in certain areas.

Server-side lock contention has been reduced through refactoring of critical paths, including pooled buffer reuse for SSL/TLS connections. This also resolves a rare server lockup that could occur under heavy TLS renegotiation. Hot allocations in SSL handling and message framing have been reduced, and thread handoff between IO and processing paths has been improved.

A broader deadlock and lockup fix campaign audited lock ordering across the server core, added diagnostics and time-bounded waits, and resolved several high-risk deadlock cycles in the routing and subscription-handling paths.

A memory leak affecting long-lived client sessions with unflushed metrics has also been fixed.

Collectively, these improvements increase efficiency and scalability, and reduce latency.

Monitoring and Metrics

Multiplexer metrics are now provided to Prometheus, giving insight into the number of connected clients and pending events.

A new metric, diffusion_server_license_expires_days, has been added for the number of days remaining before licence expiry.

Prometheus has also been upgraded to version 1.5.1. For details of changes to metric names, see Prometheus metric naming conventions.

Diffusion on ARM

Diffusion now offers support for the ARM architecture.

The Diffusion server is supported on 64-bit ARM® processors on Linux™ . For details, see ARM platform support for the Diffusion server.

Other Improvements

  • The Hazelcast dependency has been upgraded to version 5.7.
  • Numerous other third-party dependencies have been updated across the server and client SDKs.

Plus other minor improvements - see the release notes for full details.