Replies: 1 comment 1 reply
-
I'm also new to Fluid, so don't take this as experienced advice, but I'm interested in the answer to this question so I thought I'd share my thoughts. If your server environment is Node, maybe you can import the Fluid library and create the container on the server. If not, you could create the container in the client, and have a POST endpoint like In both cases, you'd want to use a database transaction to ensure that checking for an existing container ID, or saving the new one, was an atomic operation. |
Beta Was this translation helpful? Give feedback.
-
Hi All,
I am new to the Fluid Framework so please excuse me if these questions have been documented somewhere (I have looked but cannot find anything specific).
In all of the examples I have seen, we do the following -
In our application I have many objects that I would users to collaborate. An example is our Project entity which contains tasks that users need to complete.
Since it is stored in the database it already has unique id. When creating a container I want to use the an application specific ID not one provided by the Azure Relay Service. The reason for this is that when users collaborate on this object I want to ensure all users are connected to the same container.
Without a known containerId each call to contain.attach would result in a new container being created and no collaboration would happening.
If I create a container on the service side each time I create a project I would have thousands of containers that are bound a specific Azure Fluid Relay and it would also mean I would have to run a utility to generate containers for previously created projects.
So my questions:
Is there any way to use application specific key rather using the random key obtained from attach?
If we cannot do 1, how do we prevent multiple containers from being created .. ie. multiple users open the same project at the same time .. say during a teams meeting. Each would go to the project screen, the would not have a containerId, they would attach and multiple containers would be created?
Regards,
Tarek
Beta Was this translation helpful? Give feedback.
All reactions