Book Image

Distributed .NET with Microsoft Orleans

By : Bhupesh Guptha Muthiyalu, Suneel Kumar Kunani
Book Image

Distributed .NET with Microsoft Orleans

By: Bhupesh Guptha Muthiyalu, Suneel Kumar Kunani

Overview of this book

Building distributed applications in this modern era can be a tedious task as customers expect high availability, high performance, and improved resilience. With the help of this book, you'll discover how you can harness the power of Microsoft Orleans to build impressive distributed applications. Distributed .NET with Microsoft Orleans will demonstrate how to leverage Orleans to build highly scalable distributed applications step by step in the least possible time and with minimum effort. You'll explore some of the key concepts of Microsoft Orleans, including the Orleans programming model, runtime, virtual actors, hosting, and deployment. As you advance, you'll become well-versed with important Orleans assets such as grains, silos, timers, and persistence. Throughout the book, you'll create a distributed application by adding key components to the application as you progress through each chapter and explore them in detail. By the end of this book, you'll have developed the confidence and skills required to build distributed applications using Microsoft Orleans and deploy them in Microsoft Azure.
Table of Contents (17 chapters)
1
Section 1 - Distributed Applications Architecture
4
Section 2 - Working with Microsoft Orleans
10
Section 3 - Building Patterns in Orleans
13
Section 4 - Hosting and Deploying Orleans Applications to Azure

Creating a Docker image

The Docker platform is an open source platform that helps us package applications (code, configuration, dependencies) as a standalone lightweight executable image that can then be deployed and executed in an Azure Kubernetes cluster.

Note

You can learn more about Docker and containers here:

https://docs.docker.com/get-started

https://docs.docker.com/desktop/windows

https://docs.docker.com/desktop/windows/install

Through the following steps, we will see how to package our application as a Docker container image:

  1. Add Docker support by right-clicking the Distel.WebHost project in Solution Explorer and selecting Add > Docker Support… as shown in the following figure:

Figure 10.3 – Adding Docker support

  1. Once you select Docker Support…, you will get an option to select the target OS as shown in the following figure. For this demo, I have selected Linux:
  2. ...