Fluidframework/azure-client token provider

Fernan Dolz 0 Reputation points
2024-11-20T15:58:29.56+00:00

I'm testing fluid relay for the first time, on a sample dice roll.   The deployment is not working showing timeout errors,  how to fix the error? 

and also I hope someone can answer these doubts 

If more than 150 users are available, how will it be handled without interruptions?

How much will it cost if I run this setup for at least 3 months?

How I automate the Azure JWT to access the  containers? 

With the  AzureFunctionTokenProvider

import { AzureClient, AzureFunctionTokenProvider } from "@fluidframework/azure-client";

 

const config = {

    tenantId: "xxxxxxxxxxxxxx",

    tokenProvider: exp AzureFunctionTokenProvider("https://expUrl"+"/api/GetAzureToken", { userId: "exp-user",userName: "exp User" }),

    endpoint: "https://expServiceEndpointUrl",

    type: "remote",

};

 

const clientProps = {

    connection: config,

};

 

const client = new AzureClient(clientProps);

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
663 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,014 questions
Azure Fluid Relay
Azure Fluid Relay
An Azure service used to add real-time collaborative experiences to apps with Fluid Framework.
5 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 27,851 Reputation points Microsoft Employee
    2024-11-27T18:00:05.8733333+00:00

    Fernan Dolz, Apologies for the delay and the lengthy response; I've compiled insights addressing all your specific questions.

    Based on my understanding of your issue description, you are leveraging the sample outlined in this doc: Quickstart: Dice roller

    1. For the deployment timeout, you may re-try and let us know if you see any specific error.

    AzureFunctionTokenProvider is a token provider that does not expose the secret key in client-side code and can be used in production scenarios.

    Also review - Incremental summaries uploaded to Azure Fluid Relay must not exceed 28 MB. If the document size surpasses 95 MB, client load or join requests will fail. Operations, which are incremental updates sent via the websocket, are limited to 700 KB each.

    2.The Azure Fluid Relay service allows a maximum of 100 users to participate in a single session simultaneously. This means that if a 101st user attempts to join, they will be unable to do so. However, if a current participant leaves the session, a new user can join, as the total number of simultaneous users will then fall below the limit.

    3.Based on your requirement, you may leverage Azure calculator to estimate the cost.

    https://azure.microsoft.com/pricing/calculator
    (It provides for per month, you can extrapolate for 3 months)User's image

    1. To connect to an Azure Fluid Relay instance, you first need to create an AzureClient. You must provide some configuration parameters including the tenant ID, service URL, and a token provider to generate the JSON Web Token (JWT) that will be used to authorize the current user against the service.

    References:


    If the answer helped (pointed, you in the right direction) > please click Accept Answer to benefit the community find answers quickly to similar question.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.