Skip to content

wagnerhsu/packet-Practical-Microservices-with-Dapr-and-.NET

 
 

Repository files navigation

Practical Microservices with Dapr and .NET

Practical Microservices with Dapr and .NET

This is the code repository for Practical Microservices with Dapr and .NET, published by Packt.

A developer's guide to build cloud native applications using the Dapr event-driven runtime

What is this book about?

Over the last decade, there has been a huge shift from heavily coded monolithic applications to finer, self-contained microservices. Dapr is a new, open source project by Microsoft that provides proven techniques and best practices for developing modern applications. It offers platform-agnostic features for running your applications on public cloud, on-premises, and even on edge devices.

  • This book covers the following exciting features:
  • Use Dapr to create services, invoking them directly and via pub/sub
  • Discover best practices for working with microservice architectures
  • Leverage the actor model to orchestrate data and behavior
  • Use Azure Kubernetes Service to deploy a sample application
  • Monitor Dapr applications using Zipkin, Prometheus, and Grafana
  • Scale and load test Dapr applications on Kubernetes

If you feel this book is for you, get your copy today!

https://www.packtpub.com/

Errata

  • page 14: The sentence "After we execute dapr init, if we check the Dapr version, we can see it is now moved forward from 0.8.0 to 0.10.0 for both the CLI and the runtime:" must be read as "After we execute dapr init, if we check the Dapr version, we can see it is now moved forward from 0.11 to 1.0.0-rc.1 for both the CLI and the runtime:"
  • page 14: The sentence "These are going to be much easier to do via VS Code, with the \code. command" must be read as "These are going to be much easier to do via VS Code, with the <directory>\code . command."
  • page 17: The command dapr run –app-id <your app id> --app-port <port of the application> --dapr-http-port <port in Dapr> dotnet run must be read as dapr run --app-id <your app id> --app-port <port of the application> --dapr-http-port <port in Dapr> dotnet run
  • page 35: The command following the "You can use the most recent public version or a daily build:" sentence is incorrect and the correct one is as follows:
    PS C:\Windows\System32> dotnet tool install -g Microsoft.Tye --version "0.6.0-alpha.21070.5"
    You can invoke the tool using the following command: tye
    Tool 'microsoft.tye' (version '0.6.0-alpha.21070.5') was successfully installed.
    

Instructions and Navigations

All of the code is organized into folders. For example, Chapter02.

The code will look like the following:

"compounds":
[
  {
    "name": "webApi + webApi2 w/Dapr",
    "configurations": [".NET Core Launch w/Dapr (webapi)",
    ".NET Core Launch w/Dapr (webapi2)"]
  }
]

Following is what you need for this book: This book is for developers looking to explore microservices architectures and implement them in Dapr applications using examples on Microsoft .NET Core. Whether you are new to microservices or have knowledge of this architectural approach and want to get hands-on experience in using Dapr, you’ll find this book useful. Familiarity with .NET Core will help you to understand the C# samples and code snippets used in the book.

With the following software and hardware list you can run all code files present in the book (Chapter 1-10).

Software and Hardware List

Chapter Software required OS required
1-10 Docker Engine – the latest version Windows, Mac OS X, and Linux (Any)
1-10 .NET Core 3.1 Windows, Mac OS X, and Linux (Any)
1-10 Dapr, release candidate 1 or later Windows, Mac OS X, and Linux (Any)
1-10 VS Code – the latest version Windows, Mac OS X, and Linux (Any)
10 Python 3.8 Windows, Mac OS X, and Linux (Any)
1-10 The Azure CLI – 2.15.1 or later Windows, Mac OS X, and Linux (Any)
10 Locust 1.3.1 or later Windows, Mac OS X, and Linux (Any)

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.

Related products

Get to Know the Author

Davide Bedin is a cloud-native architecture enthusiast, with strong and relevant experience with cloud platforms. As CTO of an ISV, Davide led its significant transformational process with the objective of creating new solutions based on the Microsoft Azure cloud. Davide particularly focused on the evolution of distributed computing to service-oriented architectures, and ultimately microservices, spending most of his developer career creating web services. As a cloud solution architect at Microsoft, Davide is responsible for the guidance and support of enterprise customers in embracing the cloud paradigm, a key enabler of their digital transformation; lately, he also plays with Dapr.

About

Microservices Simplified with Microsoft's Dapr, published by Packt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 85.3%
  • PowerShell 10.0%
  • Dockerfile 3.4%
  • Python 1.3%