


In order for the client’s ops to be persisted, a server will be necessary for the data to be stored. There’s also a server component to the Fluid Service. The developer can focus on their client experience and let the Fluid Framework do the rest of the work for them. This gives teams a lot of flexibility to use the framework of their choice to implement this technology. One of the best parts of the Fluid Framework is that it will independently work with the most popular UI libraries, including React, Vue.js, and Angular.
#Fluid app github code#
With the Fluid Framework, client code can pull in libraries available on npm that handle all the heavy lifting. Persistent storage is a record of ops that is saved outside the Fluid Service (typically in a database or file). Session storage is managed by the Fluid Service running on the clients themselves. The way that it maintains the data state across any client is through session storage and persistent storage. Whenever an op is passed into the Fluid Service, it persists the change within the DDS that it occurred and then propagates the change to any connected clients. The Fluid Service takes in any change from the DDS within the client as an op (change). The Fluid Container also contains the Fluid Runtime, which includes Distributed Data Structures (DDS) that persist data to any clients connected to the application.

The Fluid Container contains all the logic that communicates with the Fluid Loader, which then communicates back with the Fluid Service.
#Fluid app github full#
Click here to see the full demo with network requests The Fluid Loader wraps a Fluid Container that houses all the mechanisms that allow clients to communicate with the Fluid Framework. When applications use the Fluid Framework, they start with the Fluid Loader. I’m borrowing the following graph from the Fluid Framework docs, and it provides an excellent visual: A diagram of the Fluid Framework architecture (original can be found here: ) The framework can be explained in the following terms: We can discuss the mechanics in a general sense, and you can also see it in action if you use apps like Microsoft Teams. For a quick intro to what this technology looks like in action, check out the demo that was shown at Build 2019:Īs I mentioned in the intro, the Fluid Framework has been around for some time and is present in many Microsoft apps that you see today. This post will introduce the Fluid Framework and then walk through a sample application to show how it can be integrated into your projects. The Fluid Framework provides helper methods and wrappers that enable your applications to have real-time updates.
