1. https://appdevelopermagazine.com/api
  2. https://appdevelopermagazine.com/real-time-data-streaming-enhancements-from-diffusiondata/
9/13/2023 3:16:49 PM
Real time data streaming enhancements from DiffusionData
Real-time,Data,Streaming,API,REST,Diffusion 6.10,DiffusionData
/Real-time-data-streaming-enhancements-from-DiffusionData-App-Developer-Magazine_qylg67ok.jpg
App Developer Magazine

API

Real time data streaming enhancements from DiffusionData


Wednesday, September 13, 2023

Richard Harris Richard Harris

DiffusionData released Diffusion 6.10, which brought enhancements to the real-time data streaming platform that will free up resources, speed up and simplify development, reduce operational costs, and address architectural and technical challenges discovered through feedback from their customers.

DiffusionData announced the release of Diffusion 6.10. The latest developer-centric enhancements to the framework aim to free up resources, speed and simplify development, and reduce operational costs.

"We spend a lot of time speaking to developers and architects about how we can improve our framework, what they need that we’re not providing and what can we do better. This latest release is mainly based on the feedback we’ve received. The enhancements address architectural and technical challenges many of our customers face on a daily basis. We are very grateful for the community and client input we get which helps us to further strengthen our market position as a global leader in real-time data streaming," said Riaz Mohammed, CTO at DiffusionData.

Enhancements in Diffusion 6.10 include: 

Floating Point Support in Topic Views

Many businesses use decimal or floating point numbers in their data, Diffusion’s Topic Views feature now supports floating point numbers in all clauses. This particularly applies to the 'process' transformation which now has support for setting floating point numbers and using them in calculations. This includes the ability to specify the scale (the number of places after the decimal point) and the rounding policy to use in calculations.

Real time data streaming enhancements from DiffusionData


Conditional update and OR operator constraints

Conditional update and OR operator constraints

Using Diffusion it is possible to specify constraints when updating a topic, either directly or using an update stream. One of these constraints is checking the current value of the topic before applying the update. Until now, the only constraint possible on a value was an exact binary equality comparison with the current value. Following a client request, you can now update topics from many different sources and still maintain the order.

6.10 has been extended to support relational comparisons, such as 'greater than', 'less than' etc. The values specified do not have to exactly match the type. For example, you can specify that the update is only applied if the current value is less than five and this would work with integral or floating point values. It would also work against a string value containing a number.

Previously it was possible to compose update constraints using an and method so that the update would only be applied if a lock was held and the value was equal to a specified value. In 6.10, you can also use an or method to compose constraints along with and so that an update is only applied if there is no topic, the topic has no value or the value is less than five.

Ability to retrieve metrics using the API

Ability to retrieve metrics using the API

Metrics provide valuable insights into how the system is performing and allow users to tune their installation accordingly. Previously, metrics have been available through Prometheus or viewable via the Diffusion Console. In 6.10 you can also retrieve metrics via the API.

This is achieved using a new metricsRequest method in the metrics feature which returns an object which you can configure and then issue a fetch request to return the required metrics. By default, it will return all metrics for all servers in a cluster, but it is possible to request only metrics for the currently connected server or for specified servers. Users can also filter metrics so that the result only contains the metrics they are interested in. Providing metrics access in the API allows users to build metric monitoring into their own applications.

Update stream recovery

Clustered server architectures are ideal for availability but present issues when the shape of the cluster changes (such as adding a new server). This feature allows applications to seamlessly recover from blips in the cluster. Previously, they would have to code applications to be resilient to these issues. In essence, less code for the user to write and maintain.

If a Diffusion cluster repartitioned whilst clients were updating, a transient error would occur and the update stream would be invalidated. The updating application would need to be coded to recover from such an eventuality. In 6.10, it is possible to specify a retry strategy, and a new RecoverableUpdateStream is created. This stream keeps in-flight updates and is able to reapply them when a transient cluster error occurs, reducing the complexity of the calling application.

REST API to manage gateway framework

REST API to manage gateway framework

Gateway Framework allows simple integration with countless external systems. The previous gateway applications were managed in real time using the Diffusion console. The addition of REST API management means that such applications can be managed programmatically from within the user’s own applications. A REST API user authenticates using a Logon call and is returned a token that it can use to make subsequent REST calls to manage the Gateway.






Subscribe to App Developer Magazine

Become a subscriber of App Developer Magazine for just $5.99 a month and take advantage of all these perks.

MEMBERS GET ACCESS TO

  • - Exclusive content from leaders in the industry
  • - Q&A articles from industry leaders
  • - Tips and tricks from the most successful developers weekly
  • - Monthly issues, including all 90+ back-issues since 2012
  • - Event discounts and early-bird signups
  • - Gain insight from top achievers in the app store
  • - Learn what tools to use, what SDK's to use, and more

    Subscribe here



Stay Updated

Sign up for our newsletter for the headlines delivered to you

SuccessFull SignUp

Featured Stories


FTC AI accuracy policy puts chatbot trust under review
FTC AI accuracy policy puts chatbot trust under review Tuesday, July 21, 2026


Human-Made Video Ads Outperform AI-Generated Creativity
Human-Made Video Ads Outperform AI-Generated Creativity Monday, July 20, 2026


SpaceX accelerates AI push with new hires
SpaceX accelerates AI push with new hires Monday, July 20, 2026




NearLens: Smart Glasses Privacy Taken Seriously
NearLens: Smart Glasses Privacy Taken Seriously Wednesday, July 15, 2026


Agentic Commerce Grows Cequence Unveils AI-Era Bot Defense
Agentic Commerce Grows Cequence Unveils AI-Era Bot Defense Wednesday, July 15, 2026


Nearly all developers use AI but few secure the code it generates
Nearly all developers use AI but few secure the code it generates Monday, July 13, 2026


Enviromates new browser launches
Enviromates new browser launches Monday, July 6, 2026


AI Executive Order aims to balance security and innovation
AI Executive Order aims to balance security and innovation Monday, June 29, 2026


Top manufacturing trends for 2026
Top manufacturing trends for 2026 Tuesday, June 23, 2026


API scoring tool shows if your API is ready for AI
API scoring tool shows if your API is ready for AI Monday, June 22, 2026


Get More App News