.NET Aspire Made Easy
.NET Aspire Made Easy
The simplest way of building distributed apps in .NET
About the Book
.NET Aspire is a technology that completely revolutionized the .NET ecosystem. Nobody expected it, but it took the software engineering community by storm when it was released.
This technology makes developing, building, and deploying orchestrated distributed applications incredibly easy. Compared to other distributed application development frameworks, it's very straightforward to set up and learn.
Combined with containerization technology, Aspire allows developers to run whole distributed applications on a local development machine the same way as they would run in production. There is no longer any need to set up emulators or disable certain services. The whole thing can be run locally and that includes the services that would normally only be hosted in the cloud, such as Azure Service Bus.
This book will teach you how to use .NET Aspire in an easy-to-understand fashion. By the end of it, you will be able to build your own distributed applications.
It will start with the basics, such as the structure of an Aspire application, the usage of Aspire components, etc. We will then move on to more advanced topics, such as the usage of databases, message brokers, distributed cache, authentication and authorization, and so on. Finally, we will go through a few examples of realistic applications that can be built in Aspire, including a social media platform and a food delivery app. You will be able to use those as cookbook recipes for building your own applications of similar types.
Table of Contents:
1. Anatomy of an Aspire Application
2. Monitoring Aspire Apps
3. Health Checks and Their Importance
4. Integration-testing Distributed Applications
5. Application Security in Aspire
6. Hosting Containers in Aspire
7. Introduction to Aspire Components
8. SQL Database Components
9. Using NoSQL Database Components
10. Using Message Brokers With Aspire
11. Working With Distributed Cache Components
12. Deploying Aspire Apps to Production
13. Building a Food Delivery App
14. Hosting an E-commerce System
15. Managing a Social Media Platform
Table of Contents
- Introduction
- Who is This Book For
- Introduction to Distributed Systems
- Overview of Orchestration
- Books Structure
- 1. Anatomy of an Aspire Application
- Initial Setup
- Getting Started With Aspire Starter Project
- Orchestrating with .NET Aspire
- Benefits of .NET Aspire
- Setting Up .NET Aspire Orchestrator
- Introducing Server Defaults
- Service Discovery in .NET Aspire
- Summary
- Further Reading
- 2. Monitoring Aspire Apps
- Components of Monitoring Systems
- Monitoring Aspire Applications
- Configuring The Telemetry
- Viewing Information on The Dashboard
- Summary
- Further Reading
- 3. Health Checks and Their Importance
- Importance of Health Checks in a Distributed App
- Enabling Health Checks Inside Aspire Apps
- Mapping Health Check Endpoints
- Monitoring App Health in Production
- Summary
- Further Reading
- 4. Integration-testing Distributed Applications
- Setting up Integration Tests in Aspire
- Installing Required Dependencies
- Examining an Aspire Test Method
- Using Different Testing Frameworks
- Expanding Test Functionality
- What About Component Testing?
- Summary
- Further Reading
- 5. Application Security in Aspire
- A Brief Introduction to Single Sign-on
- Solution Setup
- Using Service Discovery in Single Sign-on
- Enforcing UI Authentication
- Enforcing API Authentication
- Passing JWT To API
- Configuring Identity Provider
- Securing Aspire Dashboard
- Summary
- Further Reading
- 6. Hosting Containers in Aspire
- Docker Containers Overview
- Keycloak Overview
- Initial Setup
- Adding a Keycloak Container to Aspire Host
- Configuring Web Front-End App
- Configuring API Service
- Other Service Types Aspire Can Host
- Summary
- Further Reading
- 7. Introduction to Aspire Components
- Redis Output Caching in The Starter Project
- Configuring Aspire Components on The Host
- Connecting to a Component From a Hosted Service
- Viewing Components in the Dashboard
- Summary
- Further Reading
- 8. SQL Database Components
- SQL Database Components Basics
- Hosting a SQL Server Component
- Hosting an Oracle Component
- Hosting a PostgreSQL Component
- Hosting a MySQL Component
- Summary
- Further Reading
- 9. Using NoSQL And Cloud Storage Components
- Hosting a MongoDB Component
- Working with Azure Cosmos DB
- Azure Table Storage Integration
- Integrating Azure Blob Storage
- Summary
- Further Reading
- 10. Using Message Brokers With Aspire
- Working With RabbitMQ
- Working With Azure Queue Storage
- Summary
- Further Reading
- 11. Working With Distributed Cache Components
- Overview of Distributed Cache and Lock
- Sample Project
- Installing a Redis Component
- Installing Redis Client For Distributed Caching
- Using a Distributed Cache
- Using a Distributed Lock
- Calling the API
- Managing Redis Cache
- Summary
- Further Reading
- 12. Deploying Aspire Apps to Production
- 13. Building a Food Delivery App
- 14. Hosting an E-commerce System
- 15. Managing a Social Media Platform
- Introduction
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them