Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Practical Serverless and Microservices with C#

You're reading from   Practical Serverless and Microservices with C# Build resilient and secure microservices with the .NET stack and embrace serverless development in Azure

Arrow left icon
Product type Paperback
Published in Jul 2025
Publisher Packt
ISBN-13 9781836642015
Length 472 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Gabriel Baptista Gabriel Baptista
Author Profile Icon Gabriel Baptista
Gabriel Baptista
Francesco Abbruzzese Francesco Abbruzzese
Author Profile Icon Francesco Abbruzzese
Francesco Abbruzzese
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Demystifying Serverless Applications 2. Demystifying Microservices Applications FREE CHAPTER 3. Setup and Theory: Docker and Onion Architecture 4. Azure Functions and Triggers Available 5. Background Functions in Practice 6. IoT Functions in Practice 7. Microservices in Practice 8. Practical Microservices Organization with Kubernetes 9. Simplifying Containers and Kubernetes: Azure Container Apps, and Othert Tools 10. Security and Observability for Serverless and Microservices Applications 11. The Car Sharing App 12. Simplifying Microservices with .NET Aspire 13. Other Books You May Enjoy
14. Index

The Onion Architecture

The Onion Architecture makes a clear distinction between domain-specific code and the technical code that handles the UI, storage interaction, and hardware resources. This keeps the domain-specific code completely independent of technical tools, such as the operating system, web technology, database, and database interaction tools.

The whole application is organized into layers, with the outermost layer having the sole purpose of providing all the necessary infrastructure (i.e., drivers), UI, and test suites, as shown in the following figure:

Figure 3.1: Basic Onion Architecture

Figure 3.1: Basic Onion Architecture

In turn, the application-specific code is organized into several more nested layers. All layers must satisfy the following constraint:

Each layer may reference only inner layers. The way this constraint is implemented depends on the underlying language and stack. For instance, layers can be implemented as packages, namespaces, or libraries. We will implement...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime