Exercise 4 – creating a .NET Service Fabric application
Service Fabric supports multiple application models. It’s a flexible technology that allows you to host and execute any workload. After installing the Service Fabric SDK, you will be able to use its available templates.
When we run Visual Studio 2022 and select Service Fabric template, many models appear, as shown in the screenshot:
Figure 5.18 – Service Fabric template models
We will start with an application model that is considered to have reliable services. These services use the native API of Service Fabric. We have three different types of reliable services: stateless, stateful, and actors. The difference between stateful and stateless services is that in stateless services, no state is maintained in the service, but for stateful services, the state is stored with the service.
Moreover, we can use both .NET Core and .NET Framework runtimes to build reliable services...