Cloud service · Azure · Updated

Azure Fluid Relay - Azure Fluid Relay is a managed service for synchronizing and persisting shared application state across clients using Fluid Framework.

In short

Azure Fluid Relay sequences and distributes Fluid Framework operations so developers can build collaborative web applications without operating the synchronization backend. Applications remain responsible for user authentication, container authorization, discovery, and business logic. The service will retire on June 2, 2027; workloads must transition before then, with continued use available through June 1, 2027.

Cloud Services Hub →

8 key features of Azure Fluid Relay

01
Managed operation sequencing

Receives client operations, sequences them, and distributes the sequence to connected clients. Fluid Framework clients apply these operations to maintain synchronized shared state without application-specific synchronization server code.

02
Persistent Fluid containers

Stores the operations and snapshots needed to reconstruct collaborative state. Use a container as a collaboration boundary and retain its identifier in your application's metadata store.

03
JavaScript client integration

The @fluidframework/azure-client package provides APIs for creating and loading hosted containers. It can be used with browser applications built with React, Angular, Vue, or plain JavaScript.

04
Application-controlled container access

Clients access containers using JWTs issued by a trusted application backend. Implement user authentication and container-level permission checks before issuing tokens, because the relay does not maintain your application's access-control model.

05
Regional storage configuration

Select the at-rest storage region during provisioning, with paired-region replication in the normal offering. A single-region Basic option is available in selected regions, trading regional disaster recovery for tighter geographic confinement.

06
Encryption at rest

User data is encrypted at rest by default without an additional encryption enablement charge. Microsoft-managed keys are the default, and customer-managed keys are also supported.

07
Local and hosted testing

AzureClient can target a local Fluid test service or a hosted Azure Fluid Relay resource through configuration changes. Use both to test client behavior locally and service-specific constraints in an isolated Azure environment.

08
Explicit collaboration limits

Sessions support up to 100 simultaneous users, with limits on operation, summary, and document size. Enforce application-level size controls and handle disconnections rather than treating the service as an offline-first data store.

Where Azure Fluid Relay is used

  1. 01
    Shared planning boards

    Synchronize task positions, assignments, and planning values across a small team using supported shared data structures. Keep project permissions and the mapping from projects to container IDs in the application's backend.

  2. 02
    Collaborative forms and configuration editors

    Allow multiple engineers or business users to edit shared configuration state together. Validate and commit the final configuration through a trusted backend rather than treating synchronized client state as an authorized production change.

  3. 03
    Shared diagrams and lightweight canvases

    Synchronize diagram elements, coordinates, and annotations while storing images or other large assets separately. Control operation frequency and container growth to stay within service limits.

  4. 04
    Teams meeting applications

    Use a custom Azure Fluid Relay resource with a Teams Live Share application when persistent containers or application-specific security policies are required. Configure a token provider and validate Live Share feature compatibility; the relay itself does not support Signals.

  5. 05
    Maintaining and migrating existing collaborative applications

    Operate existing collaboration workloads while preparing their transition before June 2, 2027. Test replacement-service compatibility, container data migration, authorization, and reconnect behavior rather than assuming a transparent endpoint replacement.

How Azure Fluid Relay is priced

Consumption-based service charges

Budget for Azure Fluid Relay usage using the current Azure pricing terms for the deployment region and subscription agreement. Persisted container data contributes to storage cost, so delete containers when their retention period ends; estimate costs using representative collaboration traffic and retained data rather than user counts alone.

Separately billed supporting services

Application hosting, token-issuing compute, metadata databases, asset storage, and key management can incur their own charges. Include these resources, along with any parallel-running replacement environment during migration, in the application cost estimate.

Services Azure Fluid Relay works with

A common architecture separates the browser interface, authorization backend, metadata store, and synchronization service. Azure Static Web Apps can host the frontend, while an Azure Functions API authenticates users with Microsoft Entra ID and checks application permissions before issuing Fluid Relay JWTs. The browser then connects directly to the relay with its container token; the token API does not need to proxy every collaboration operation.

Use Azure Cosmos DB to map business entities to container IDs and retain ownership, sharing, and discovery metadata. Keep relay signing secrets in Azure Key Vault and grant only the token backend permission to retrieve them. Store large attachments in Azure Blob Storage, synchronizing references rather than binary payloads through Fluid shared objects. Blob authorization must remain independent of container authorization.

These are application-level integration patterns, not automatic permission synchronization or native database replication. Deploy and monitor the supporting services separately, test denied-access and reconnect paths, and include them in cost estimates. For retirement migration, preserve the application-owned metadata and authorization boundaries while validating replacement client APIs, container migration, and hosting requirements before June 2, 2027.

Azure Functions

Host a token-issuing endpoint that implements the application's Fluid token-provider contract. For example, authenticate a request, verify that the user can edit a project, and sign a short-lived JWT for that project's container. Never return the service signing key to the browser.

Microsoft Entra ID (formerly Azure AD)

Use Microsoft Entra ID to authenticate users to the application and its token-issuing API. For example, validate an Entra access token at the backend, check project membership, and then issue a separate Fluid Relay JWT. An Entra token alone does not replace the relay's container-access token.

Azure Key Vault

Store relay signing secrets in Key Vault and let the token backend retrieve them using its managed identity. For example, an Azure Function can read the required secret without embedding it in source control or browser bundles. Customer-managed encryption keys are a separate configuration concern from JWT signing secrets.

Azure Cosmos DB

Maintain application-owned container metadata and authorization records in Cosmos DB. For example, store a project ID, its Fluid container ID, display name, owner, and sharing rules so users can discover only authorized workspaces. This database is separate from the relay's managed internal storage.

Azure Blob Storage

Store large files outside Fluid containers and synchronize their identifiers or URLs through shared objects. For example, upload a diagram background image to a private blob container and share its blob identifier in Fluid state. Authorize file access separately and avoid persisting long-lived access credentials in collaborative state.

Static Web Apps

Host the browser application separately from its real-time synchronization service. For example, deploy a React application to Static Web Apps, call a protected backend to obtain a container token, and connect the Fluid client directly to Azure Fluid Relay. Keep service credentials on the backend rather than in static application settings exposed to the browser.

Azure Monitor

Azure Fluid Relay management operations, such as creating or deleting a relay server, are recorded in the Azure Monitor activity log. You can use the log to see who changed a resource and whether the operation succeeded.

Azure Policy

Azure Fluid Relay server deployments can be evaluated and governed by Azure Policy. For example, an allowed-locations policy can prevent a relay server from being created outside approved regions.

Azure portal

Azure Fluid Relay has a dedicated Azure portal page for creating and managing relay servers. After deployment, the server's Access Key page shows the service endpoint and the keys used to sign client access tokens.

What is Azure Fluid Relay

3 min read

Azure Fluid Relay provides the managed synchronization service used by Fluid Framework applications. Connected JavaScript clients modify shared objects locally, send operations to the service, and receive sequenced operations from other participants. Each client applies that sequence to maintain its local application state. The service is designed for collaborative application data, rather than general-purpose message brokering, hybrid network connectivity, or relational database queries; it is distinct from Azure Relay.

Azure Fluid Relay will retire on June 2, 2027. Applications can continue using it through June 1, 2027 while completing their transition. Fluid Framework remains available as an open-source framework, and a self-hosted Fluid service solution is the replacement. Existing deployments should inventory containers, authorization services, client package dependencies, and data-retention requirements, then validate a migration approach before the retirement date. Do not assume that changing an endpoint alone migrates existing containers or makes a client compatible with a replacement service.

The primary storage and collaboration boundary is a Fluid container. A container holds shared objects and supporting runtime state, including persisted operations and snapshots that allow clients to reconstruct a session when joining or returning. Applications use the @fluidframework/azure-client package to create and load containers. Container creation returns an identifier that the application must retain and associate with its own business entities, such as a project, document, or meeting.

Authorization is an application responsibility. Before creating or opening a container, a client requests a JSON Web Token from a trusted backend. That backend must authenticate the requester, check the application's access rules, and issue an appropriately scoped token. Azure Fluid Relay does not maintain the application's user-to-container permissions. Keep service signing keys out of browser code, and store friendly names, ownership, sharing rules, and container identifiers in an application database.

Data placement is selected when provisioning the resource. Container data is stored at rest in the chosen region, and changing that region requires a new resource. The normal offering replicates container data to the paired region for regional disaster recovery. In selected regions where pairing crosses the relevant geographic boundary, a single-region Basic option is available, but it does not provide recovery from a full regional outage. In the normal offering, in-transit session data may temporarily leave the selected region; the single-region offering also confines in-transit data to that region.

Encryption at rest is enabled by default, with Microsoft-managed keys unless customer-managed encryption keys are configured. Service-to-service communications are TLS encrypted. These protections do not replace application authorization, careful secret handling, or review of data residency requirements.

Design within the documented service limits: a session supports at most 100 simultaneous users, an individual operation is limited to 700 KB, and an incremental summary cannot exceed 28 MB. Documents larger than 95 MB cause subsequent load or join requests to fail. Experimental distributed data structures and Signals are not supported. Azure Fluid Relay also does not support extended offline periods beyond one minute; applications should observe disconnection events, communicate connection status, and avoid letting users accumulate changes that could be lost.

Keep large binary assets outside Fluid containers and synchronize references instead. Test collaboration with multiple clients, including reconnects, denied access, simultaneous edits, and document growth. The local @fluidframework/azure-local-service package supports local testing, while a separate Azure test resource validates hosted-service behavior. Delete containers that are no longer required to control retained data and storage costs.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.