Share E-Book

Serverless Distributed Systems in Modern .NET and Azure Building Resilient Event-Driven Applications (Patrick Kearns)(Z-Library)

Author

Rating 3.5 AI initial rating

Log in to rate

C/C++/C#
Language English

No Description

Format EPUB
Size 2.7 MB

AI Guide

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

Full assistant
AI guide
【One-Line Pitch】 A practical bridge from monolithic ASP.NET Core thinking to resilient, event-driven serverless architecture on Azure, written specifically for .NET developers who want to keep C#, async/await, and their existing tooling while learning to design, secure, observe, and operate distributed systems. Best for mid-level .NET engineers, architects, and DevOps practitioners moving their first production workloads to Azure Functions. 【Book Arc】 - **Opening (~0%–12%)**: Frames why distribution is now the default and what "serverless" actually means, then walks through the classic pain points — latency, partial failure, CAP, operational complexity — before deploying a first Azure Function and contrasting it with ASP.NET Core. - **Early (~12%–30%)**: Goes deep on the Functions execution model: triggers and bindings (HTTP, queue, blob, timer, Event Grid, Service Bus), hosting plans and scaling, async concurrency, configuration, dependency injection, and local testing — the mechanical foundation everything else builds on. - **Early–Middle (~30%–40%)**: Introduces messaging and decoupling (events vs. messages, queues vs. topics) and data with Cosmos DB — consistency models, partitioning, ETags, event sourcing, and CQRS via the change feed — establishing the state layer for the running OrderProcessor sample. - **Middle (~40%–60%)**: Moves into orchestration with Durable Functions (deterministic replay, fan-out/fan-in, external events, retries), integration with external APIs and human approvals, then observability (distributed tracing, structured logging) and security (JWT validation, token flows, RBAC, managed identities, secret management). - **Late (~60%–80%)**: Shifts to operations and production concerns — CI/CD, infrastructure as code, deployment governance, disaster recovery and regional failover, DevOps culture — followed by enterprise case studies on file processing, cross-service orchestration, long-running integrations, and advanced resilience patterns like bulkheads and saga compensation. - **Ending (~80%–100%)**: Consolidates into an anti-pattern catalog — inline retry loops, ignored cost optimization, security as an afterthought, over-logging — with concrete fixes applied back to the OrderProcessor reference system. 【Key Takeaways】 - **Distribution is a default, not a choice** (Opening): the book opens by treating latency, partial failure, and consistency as inherent taxes of any distributed design, so architectural decisions start from those constraints rather than from tooling. - **Serverless means elastic execution, not "no servers"** (Early): hosting plans (Consumption, Premium, Dedicated) trade cold starts against cost and reliability, and the book ties scaling behavior directly to cost modeling. - **Triggers and bindings are the real programming model** (Early): HTTP, queue, blob, timer, Event Grid, and Service Bus triggers each map to a different flow shape; understanding bindings is what makes Functions feel idiomatic rather than bolted-on. - **Async discipline determines throughput** (Early): blocking calls kill concurrency across instances, and execution order is never guaranteed — correlation IDs become the practical tool for observing what actually happened. - **Choreography vs. orchestration is a design decision with limits** (Middle): the book shows where pure event choreography breaks down in the OrderProcessor and introduces Durable Functions — deterministic replay, fan-out/fan-in, external events — as the answer for long-running, stateful workflows. - **Consistency is a dial, not a switch** (Middle): Cosmos DB's five consistency models, partitioning, ETags for optimistic concurrency, and change-feed projections (CQRS) are presented as levers to match business requirements. - **Security must live inside the workflow** (Middle): JWT validation at the function boundary, activity-based token acquisition, the on-behalf-of flow, RBAC, and managed identities over secrets — plus Durable Functions-specific risks like event injection and replay abuse. - **Observability and cost are operational features, not afterthoughts** (Late): distributed tracing, structured logging, and telemetry retention are framed alongside runaway-bill risks, chatty orchestrations, and throughput waste as things to design for from day one. 【Reading Tips】 - **Deep-read Part I (through ~30%)**: the Functions execution model, concurrency, and DI sections are the vocabulary the rest of the book assumes; skimming here makes later chapters feel abstract. - **Follow the OrderProcessor thread**: the sample evolves chapter by chapter from a single function to a full reference architecture — track each "Project Addition" to see how patterns compose rather than reading chapters in isolation. - **Treat the code as teaching code**: the author explicitly notes examples are simplified (inline HttpClient, minimal error handling); read the patterns as production-level but the snippets as illustrative, and consult the security chapter before deploying anything. - **Skim the case studies if you're time-constrained**: the late enterprise cases (file streaming, cross-region compliance, observability at scale) are best read as pattern catalogs to revisit when a real requirement matches. - **Use the anti-pattern chapter as a checklist**: the closing risks (retry loops, cost surprises, over-logging) work well as a pre-production review list for your own system. 【Coverage Limits】 The excerpts are heavily weighted toward the table of contents and early-to-middle chapters; later case-study and anti-pattern material is only partially visible, so specifics of the final chapters are summarized at the level the excerpts support.

Passage locations

Excerpt 1
believed to be true and accurate at the date of publication. Neither the publisher nor the authors or the editors give a warranty, expressed or implied, with...
View in text
Excerpt 2
nchronous Calls 100 The Messaging Alternative 101 Events vs.​ Messages 102 Real-World Analogy 102 Benefits of Messaging 102 OrderProcessor:​ Preparing for Me...
View in text
Excerpt 3
8 Admin/​Ops HTTP Endpoints (Optional) 241 Entities vs.
View in text
Excerpt 4
y, and Access Control 317 Identity Basics in Serverless .
View in text

Recommended for You

Loading recommended books...
Failed to load, please try again later

Tip the Site

Scan the WeChat Pay or Alipay code to tip. No login required.

WeChat Pay
Alipay
← Back to List