$35.71 with 24 percent savings
List Price: $46.99

The List Price is the suggested retail price of a new product as provided by a manufacturer, supplier, or seller. Except for books, Amazon will display a List Price if the product was purchased by customers on Amazon or offered by other retailers at or above the List Price in at least the past 90 days. List prices may not necessarily reflect the product's prevailing market price.
Learn more
FREE Returns
FREE delivery Tuesday, August 6. Order within 17 hrs 21 mins
In Stock
$$35.71 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$35.71
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Ships from
Amazon.com
Ships from
Amazon.com
Sold by
Amazon.com
Sold by
Amazon.com
Returns
30-day refund/replacement
30-day refund/replacement
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Returns
30-day refund/replacement
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
Payment
Secure transaction
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

Follow the author

Something went wrong. Please try your request again later.

Architecting ASP.NET Core Applications - Third Edition: An atypical design patterns guide for .NET 8, C# 12, and beyond 3rd ed. Edition

4.8 4.8 out of 5 stars 18 ratings

{"desktop_buybox_group_1":[{"displayPrice":"$35.71","priceAmount":35.71,"currencySymbol":"$","integerValue":"35","decimalSeparator":".","fractionalValue":"71","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"7o23bKgK36GEYWClREGVIbNF1DhKSdcSlfVX70bQHF3qQhdevo6Dhzlimy1EVam6%2FQH1PXEz1TqfnM%2FmW%2BhrK1%2FHW%2FrZagyYhJdIdOxe3XvCjlXiizwJ4T6wHesrg6h8q7LeB1HDmuhinNudRIXEHg%3D%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}]}

Purchase options and add-ons

Backend design like you've never seen it before - a guide to building SOLID ASP.NET Core web apps that stand the test of time. Featuring more Minimal APIs, more testing, a new e-commerce project, and the modular monolith!

Purchase of the print or Kindle book includes a free PDF eBook.

Key Features
  • Learn multiple ways to organize your application code and become a more flexible ASP.NET Core developer
  • Explore hands-on design patterns, learn architectural principles, and how to sidestep anti-patterns
  • Refactor code toward modern application design, such as feature-based vertical slice and clean architecture
Book Description

This unique ASP.NET Core book will fill in the gaps in your REST API and backend designs. Learn how to build robust, maintainable, and flexible apps using Gang of Four (GoF) design patterns and modern architectural principles. This new edition is updated for .NET 8 and focuses exclusively on the backend, with new content on REST APIs, the REPR pattern, and building modular monoliths.

You'll start by covering foundational concepts like REST, the SOLID principles, Minimal APIs, dependency injection in .NET, and other ASP.NET Core 8 mechanisms. Then, you'll learn to develop components using design patterns, including many from the GoF. Finally, you'll explore organizing your application code with patterns that vary from layers to feature-oriented vertical slice designs, covering CQS and a deep dive into microservices along the way. A brand-new e-commerce project at the end of the book will tie it all together.

This how-to guide will teach you how to assemble your own APIs from building blocks, to suit whatever real-world requirements you may have.

What you will learn
  • Apply the SOLID principles for building flexible and maintainable software
  • Test your apps effectively with automated tests, including black-box testing
  • Embark on mastering ASP.NET Core dependency injection
  • Work with GoF design patterns including strategy, decorator, facade, and composite
  • Design REST APIs using Minimal APIs and ASP.NET Core MVC
  • Discover layering and the tenets of clean architecture
  • Use feature-oriented techniques as an alternative to layering
  • Explore microservices, CQS, REPR, vertical slice architecture, and many more patterns
Who this book is for

This book is for intermediate-level ASP.NET Core developers who want to improve their C# app code structure and API design skills. ASP.NET developers who want to modernize their knowledge and enhance their technical architecture skills will also like this book. It's also a good refresher for those in software design roles with more experience looking to update their expertise.

A good knowledge of C# programming and a basic understanding of web concepts is necessary to get the most out of this book, though some refreshers are included along the way.

Table of Contents
  1. Introduction
  2. Automated Testing
  3. Architectural Principles
  4. REST APIs
  5. Minimal APIs
  6. Model-View-Controller
  7. Strategy, Abstract Factory, and Singleton Design Patterns
  8. Dependency Injection
  9. Application Configuration and the Options Pattern
  10. Logging Patterns
  11. Structural Patterns
  12. Behavioral Patterns
  13. Operation Result Pattern
  14. Layering and Clean Architecture
  15. Object Mappers
  16. Mediator and CQS Patterns
  17. Getting Started with Vertical Slice Architecture
  18. Request-EndPoint-Response (REPR)
  19. Introduction to Microservices Architecture
  20. Modular Monolith

Amazon First Reads | Editors' picks at exclusive prices

Frequently bought together

This item: Architecting ASP.NET Core Applications - Third Edition: An atypical design patterns guide for .NET 8, C# 12, and beyond
$35.71
Get it as soon as Tuesday, Aug 6
In Stock
Ships from and sold by Amazon.com.
Total price:
To see our price, add these items to your cart.
Details
Added to Cart
spCSRF_Control
Choose items to buy together.

From the Publisher

Marcotte - top banner 2
Marcotte - cover

Expert insight (blue)
What key skills will readers gain from this book?

  • Building REST APIs​
  • Implementing design patterns​
  • Reusing logic​
  • Organizing code around responsibilities​
  • Addressing complex problems hands-on​
  • Rationalizing architectural decisions​
  • Creating high-quality, maintainable software

What's new in this edition?

In this edition, I've focused on backend design, allowing more concise code samples and better continuity between projects. This book digs deeper into REST APIs and Minimal APIs, and I've added chapters on new architectural styles: the Request-EndPoint-Response (REPR) pattern and modular monoliths.​

I've also introduced new examples and projects across the book, including a new e-commerce project spanning the last three chapters, and revamped code throughout, also updating to .NET 8 and C#12.

  • Brand new chapters​
  • Enhanced material on REST APIs, Minimal APIs, and testing​
  • More real-life examples and projects
  • Improved, up-to-date code
Author cover resized

How did you choose the patterns featured in this book?​

I start the book by building a foundation for readers, covering architectural principles, REST APIs, ASP.NET fundamentals, and dependency injection. Then, I divide the book into two categories of patterns: components patterns, revisiting some of the original Gang of Four (GoF) design patterns, followed by application architecture styles, such as layering, clean architecture, vertical slice architecture, microservices architecture, and modular monoliths. ​

The selection of GoF patterns was based on their proven utility in REST API and web application development, drawing from my personal experience. I added application architecture styles to give readers the tools to jump into all sorts of codebases and learn different modern styles besides the layering technique, often used as a fallback, to start new projects. ​

In addition to the patterns, I added many anti-patterns and code smells derived from my experience as an engineer and architect to help readers avoid these traps. ​

Marcotte - module 3

What makes this book different from other books on the topic?​

In this book, I emphasize the reasoning behind design and architectural choices. Readers aren't left to themselves to apply these patterns in isolation; I guide them to think critically about technical architecture, encouraging a deeper understanding of design decisions.

I advocate hands-on learning from failures, which shapes a thoughtful and iterative approach to software design through refactoring. ​I wrote the book to feel like a journey, with understanding and reasoning building up progressively as the reader works through the book. Along the way, I've provided use cases that combine design patterns, illustrating the versatility of the patterns. ​

Marcotte - bottom banner

Editorial Reviews

Review

“Readers that works through the content of this book should expect to build confidence in design architectural patterns. This will allow for building more robust and scalable systems.”

Nick Cosentino, Principal Software Engineering Manager at Microsoft



“It is a guidebook for software architecture because of the section structure. You start with basic principles and methodologies and then tackle Testing, Design patterns,Mappers and CQRS. In the end, comes my two favorite chapters Vertical slice architecture and REPR pattern”

Pavle Davitkovic, Software Developer at Ingsoftware



“It navigates through Minimal APIs, robust testing techniques, a captivating e-commerce venture, and illuminating modular monolith insights, crafted for aspiring developers seeking to create flexible and maintainable software with elegance and skill.”

Dariusz Kalbarczyk, Google Developer Expert

About the Author

Carl-Hugo Marcotte is a software craftsman who has developed digital products professionally since 2005, while his coding journey started around 1989 for fun. He has a bachelor's degree in computer science. He has acquired a solid background in software architecture and expertise in ASP.NET Core through creating a wide range of web and cloud applications, from custom e-commerce websites to enterprise applications. He served many customers as an independent consultant, taught programming, and is now a Principal Architect at Export Development Canada. Passionate about C#, ASP.NET Core, AI, automation, and Cloud computing, he fosters collaboration and the open-source ethos, sharing his expertise with the tech community.

Product details

  • Publisher ‏ : ‎ Packt Publishing; 3rd ed. edition (March 22, 2024)
  • Language ‏ : ‎ English
  • Paperback ‏ : ‎ 806 pages
  • ISBN-10 ‏ : ‎ 1805123386
  • ISBN-13 ‏ : ‎ 978-1805123385
  • Item Weight ‏ : ‎ 3.04 pounds
  • Dimensions ‏ : ‎ 1.57 x 7.5 x 9.25 inches
  • Customer Reviews:
    4.8 4.8 out of 5 stars 18 ratings

About the author

Follow authors to get new release updates, plus improved recommendations.
Carl-Hugo Marcotte
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

Carl-Hugo Marcotte is a software craftsman who has developed digital products professionally since 2005, while his coding journey started around 1989 for fun. He has a bachelor’s degree in computer science.

He has acquired a solid background in software architecture and expertise in ASP‎.NET Core through creating a wide range of web and cloud applications, from custom e-commerce websites to enterprise applications. He served many customers as an independent consultant, taught programming, and is now a Principal Architect at Export Development Canada.

Passionate about C#, ASP‎.NET Core, AI, automation, and Cloud computing, he fosters collaboration and the open-source ethos, sharing his expertise with the tech community.

Customer reviews

4.8 out of 5 stars
18 global ratings

Top reviews from the United States

Reviewed in the United States on April 8, 2024
This book was a great addition to my collection. I will say if you are a beginner in ASP.NET Core or are coming from another language or framework this book might be a little bit confusing. If you have been using C# and .NET for a few years or built a few apps with the language and framework then you should have no trouble with understanding the concepts taught in this book.

The book is not a beginner's guide to ASP.NET Core but rather a book on the common design patterns implemented while using the framework. The author has done a great job on explaining the dos and don'ts of the framework and how you can follow in the footsteps of others to ensure a sound and secure application is built following the principles and patterns discussed.

If you are looking to increase your architecting skills with ASP.NET Core and C# then this book will help guide you on that journey.
2 people found this helpful
Report
Reviewed in the United States on April 22, 2024
I just finished going through my copy of this, and I am impressed. There aren't many books written specifically for .NET developers that teach so many best practices. You can find books on some of the topics covered here: unit testing, TDD, MVC, minimal APIs, REST, SOLID principles, etc, but the author of this one gives you all of that and much more. You get enough information to provide a solid foundation, and you can move on to other resources if you feel you need to explore further to really 'get' something. If you're a .NET developer with some experience, even intermediate, this book is perfect for you to take the next step... especially if you're a web developer. Check it out!
One person found this helpful
Report
Reviewed in the United States on April 29, 2024
"Architecting ASP.NET Core Applications" by Carl Marcotte is a must-read for any developer looking to deepen their understanding of building scalable and maintainable web applications using ASP.NET Core. Marcotte’s expertise and clear writing style make this book an invaluable resource for both intermediate and advanced developers.

The book covers a broad spectrum of topics crucial to modern application architecture, including dependency injection, middleware, security, and more. What sets this book apart is its focus on architectural best practices and design patterns specific to ASP.NET Core, which are often glossed over in more general texts.

Marcotte does an excellent job of explaining complex concepts with clarity and precision, using real-world examples that demonstrate how to apply these principles effectively. Each chapter builds on the previous ones, reinforcing the reader's understanding while gradually introducing more sophisticated architectural strategies.

Additionally, the book includes practical advice on testing and deploying ASP.NET Core applications, ensuring that readers not only learn how to build the applications but also how to integrate them seamlessly into production environments. This holistic approach is particularly helpful for developers looking to transition projects from development to production.

However, beginners may find the content challenging as it assumes a familiarity with ASP.NET Core's fundamentals. For those new to the framework, it might be beneficial to start with a more introductory resource before tackling this advanced material.

In conclusion, "Architecting ASP.NET Core Applications" by Carl Marcotte is an excellent guide for any developer serious about mastering ASP.NET Core. Its comprehensive coverage of architectural concepts, combined with practical implementation tips, makes it an essential addition to any professional developer's library.
Reviewed in the United States on April 3, 2024
This is a great and well-written book. It addresses several general programming scenarios that the modern .NET developer needs to be aware of and know how to handle.
Reviewed in the United States on April 6, 2024
This book is like the Wave-Particle duality in Physics: it's a mix of architecture - best design practices, and SOLID principals with a focus on REST API sound development as one does not exist without the other.
Yet, I fail to understand what the book primary focuses on. But it does not leave a pattern not covered. This is the book's major strength. The other strong points are the useful UML diagrams, terse, but therefore reusable code chunks.
A few shortcomings exist, too: the author does not, almost, spend time on how to set your tooling. Then, surprisingly, time spent on teaching the bare fundamentals, I just expected the book to be oriented towards more mature developers because the patterns would be imposed from the above.
The database usage hardly enters the stage, no cloud providers covered, the patterns seem to be spread unevenly across the book without any logic in sequence or order.
I guess after having read this book, encountering a new project or section of development to work on later in time would send me back to skimming through various chapters and paragraphs. This is just how hard the vast, and mixed material sticks to my brain. Another reader may be fine with that.
I am thinking this book can be a good all-in-one comprehensive manual or blueprint for somebody ranging in proficiency from a beginner to master in REST APIs on .Net.
I frankly was split on giving it 5 or 4 stars with no option to meeting in the middle, it's a solid four.
One person found this helpful
Report

Top reviews from other countries

Translate all reviews to English
Ferenc Pato
5.0 out of 5 stars This is a must read for a .NET developer
Reviewed in Germany on June 12, 2024
"Architecting ASP.NET Core Applications" is an impressive resource for developers. It covers essential design patterns, architecture principles, useful libraries, and practical techniques. A must-read for anyone looking to enhance their skills in ASP.NET Core development. Highly recommended!
Hamza EL
4.0 out of 5 stars bon produit
Reviewed in France on May 30, 2024
tres bon livre
andersona
5.0 out of 5 stars Excellent read
Reviewed in Sweden on April 18, 2024
This has been one of the best reads for me this year, for sure. The book is easily readable with a well structured layout, including code examples and diagrams. I especially liked section four and all the small sample projects, they made everything extra clear. I appreciated that both the strengths and weaknesses of the patterns were explained in some chapters.

While primarily for C# developers, this book is recommended for anyone new to C# and .NET with a few months experience, as well as those with programming experience outside the .NET and C# world. Thanks to the author's clear writing and use of diagrams, I'm really satisfied. Many things that weren't entirely clear before are now crystal clear to me!
Giuseppe G
5.0 out of 5 stars Completo ed esaustivo! Un must in design patterns
Reviewed in Italy on April 3, 2024
Dopo l’ottima esperienza avuta con un altro libro della casa editrice Packt, in particolare quello su Angular e ASP.NET Core 8 di Valerio De Sanctis, ho deciso di continuare e approfondire il mio “viaggio” nel mondo backend, esplorando maggiormente ASP.NET Core.

E la scelta è ricaduta su questo libro dal sottotitolo particolarmente audace ma evidentemente efficace: l’intenzione è appunto quella di migliorare le capacità di architettare le applicazioni ASP.NET, utilizzando efficacemente i più noti design pattern ma applicandoli con tecniche moderne, grazie all’utilizzo di C# 12 e .NET 8.
Il libro è pensato per chi ha già un livello di conoscenza medio di ASP.NET e C#, pertanto non è adatto a chi invece ha bisogno di partire da zero su queste tecnologie o sull’OOP (non è il suo obiettivo).

Ciò che mi è piaciuto molto di questo libro e che secondo me rappresenta un vero valore aggiunto è la possibilità di vedere come dei progettisti esperti e affermati (come l’autore) applicano concretamente, a use-case reali, la teoria relativa alla progettazione software:
i design pattern sono importanti per ogni programmatore, fondamentali per chi vuole architettare delle soluzioni di alto livello, e quelli trattati in questo libro sono effettivamente tanti (i principali della GoF). Ma ciò che rende il libro veramente unico, per me, è che ognuno di questi, oltre ad essere ben spiegato e corredato di codice, Class Diagram e Sequence Diagram, viene supportato da vari “progetti” finali, dove ciò che è stato illustrato in teoria viene poi applicato a casi reali, concreti ed effettivamente utili, spiegandone anche il “perché” si è arrivati a quella conclusione. ✅
Quindi la teoria non rimane fine a sé stessa o spiegata con esempi “banali” (come succede molto spesso…) e il modo in cui sviene applicata al mondo reale contribuisce a solidificare nel lettore ciò che si è studiato. Un vero plus. 👏

Ma non ci sono solo i design pattern: molto bene la parte introduttiva, sui principi architetturali (SOLID, DRY), sui testing automatizzati e sulle REST API, ottima per iniziare a prendere confidenza con l’argomento.
Infine non mancano temi come Dependency Injection, Minimal API, REPR, MVC, architetture a microservizi e “Modular Monolith” ( 😮 )

✔ Mi sembra un libro veramente completo, da tenere sempre sulla scrivania mentre si sviluppa: ho trovato tutto quello che mi serviva sapere e anche di più.
Assolutamente da 5 stelle! ⭐⭐⭐⭐⭐
Customer image
Giuseppe G
5.0 out of 5 stars Completo ed esaustivo! Un must in design patterns
Reviewed in Italy on April 3, 2024
Dopo l’ottima esperienza avuta con un altro libro della casa editrice Packt, in particolare quello su Angular e ASP.NET Core 8 di Valerio De Sanctis, ho deciso di continuare e approfondire il mio “viaggio” nel mondo backend, esplorando maggiormente ASP.NET Core.

E la scelta è ricaduta su questo libro dal sottotitolo particolarmente audace ma evidentemente efficace: l’intenzione è appunto quella di migliorare le capacità di architettare le applicazioni ASP.NET, utilizzando efficacemente i più noti design pattern ma applicandoli con tecniche moderne, grazie all’utilizzo di C# 12 e .NET 8.
Il libro è pensato per chi ha già un livello di conoscenza medio di ASP.NET e C#, pertanto non è adatto a chi invece ha bisogno di partire da zero su queste tecnologie o sull’OOP (non è il suo obiettivo).

Ciò che mi è piaciuto molto di questo libro e che secondo me rappresenta un vero valore aggiunto è la possibilità di vedere come dei progettisti esperti e affermati (come l’autore) applicano concretamente, a use-case reali, la teoria relativa alla progettazione software:
i design pattern sono importanti per ogni programmatore, fondamentali per chi vuole architettare delle soluzioni di alto livello, e quelli trattati in questo libro sono effettivamente tanti (i principali della GoF). Ma ciò che rende il libro veramente unico, per me, è che ognuno di questi, oltre ad essere ben spiegato e corredato di codice, Class Diagram e Sequence Diagram, viene supportato da vari “progetti” finali, dove ciò che è stato illustrato in teoria viene poi applicato a casi reali, concreti ed effettivamente utili, spiegandone anche il “perché” si è arrivati a quella conclusione. ✅
Quindi la teoria non rimane fine a sé stessa o spiegata con esempi “banali” (come succede molto spesso…) e il modo in cui sviene applicata al mondo reale contribuisce a solidificare nel lettore ciò che si è studiato. Un vero plus. 👏

Ma non ci sono solo i design pattern: molto bene la parte introduttiva, sui principi architetturali (SOLID, DRY), sui testing automatizzati e sulle REST API, ottima per iniziare a prendere confidenza con l’argomento.
Infine non mancano temi come Dependency Injection, Minimal API, REPR, MVC, architetture a microservizi e “Modular Monolith” ( 😮 )

✔ Mi sembra un libro veramente completo, da tenere sempre sulla scrivania mentre si sviluppa: ho trovato tutto quello che mi serviva sapere e anche di più.
Assolutamente da 5 stelle! ⭐⭐⭐⭐⭐
Images in this review
Customer image Customer image Customer image Customer image Customer image
Customer imageCustomer imageCustomer imageCustomer imageCustomer image
One person found this helpful
Report
Martino Bordin
5.0 out of 5 stars Ottima base sullo sviluppo NET moderno
Reviewed in Italy on April 8, 2024
Questo libro di oltre 800 pagine ti aiuta nel creare applicazioni robuste con ASP.NET Core, partendo dai principi RESTful fino al versioning delle API, i test automatizzati, la configurazione e il logging, passando poi ai dettagli specifici di ASP.NET Core, Minimal API, MVC e i classici pattern di design GoF.
Si conclude quindi esplorando approcci architetturali come Clean Architecture, CQRS, Microservizi e Modular Monolith e VSA.

Il libro fornisce una solida base, preparando il terreno per ulteriori studi e perfezionamenti; si concentra sul backend/API. Non tratta tecnologie frontend .NET come Blazor o MAUI.

La scrittura è chiara, concisa e facile da comprendere. Fornisce esempi, insieme al codice sorgente disponibile da esaminare, testare e modificare.

Decisamente un libro da avere nella propria libreria.
Customer image
Martino Bordin
5.0 out of 5 stars Ottima base sullo sviluppo NET moderno
Reviewed in Italy on April 8, 2024
Questo libro di oltre 800 pagine ti aiuta nel creare applicazioni robuste con ASP.NET Core, partendo dai principi RESTful fino al versioning delle API, i test automatizzati, la configurazione e il logging, passando poi ai dettagli specifici di ASP.NET Core, Minimal API, MVC e i classici pattern di design GoF.
Si conclude quindi esplorando approcci architetturali come Clean Architecture, CQRS, Microservizi e Modular Monolith e VSA.

Il libro fornisce una solida base, preparando il terreno per ulteriori studi e perfezionamenti; si concentra sul backend/API. Non tratta tecnologie frontend .NET come Blazor o MAUI.

La scrittura è chiara, concisa e facile da comprendere. Fornisce esempi, insieme al codice sorgente disponibile da esaminare, testare e modificare.

Decisamente un libro da avere nella propria libreria.
Images in this review
Customer image
Customer image