.NET Aspire Made Easy
$9.99
Minimum price
$9.99
Suggested price

.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

About the Author

Fiodar Sazanavets
Fiodar Sazanavets

I am a senior software engineer working for Microsoft. I have over a decade of professional experience and am a past recipient of the Microsoft MVP award. I primarily specialize in .NET and Microsoft stack. I am enthusiastic about creating well-crafted software that fully meets business needs.

Throughout my career, I have successfully developed software of various types and various levels of complexity in multiple industries. This includes a passenger information management system for a railway, distributed smart clusters of IoT devices, e-commerce systems, financial transaction processing systems, and more. I have also successfully led and mentored teams of software developers.

I enjoy sharing my knowledge with the community. This motivates me to mentor aspiring developers and create educational content, which includes blog posts, technical books, and online courses. I regularly write about software development on my personal website, scientificprogrammer.net.

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

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

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub