Minimal APIs in ASP.NET 9 - Second Edition: Design, implement, and optimize robust APIs in C# with .NET 9
暫譯: ASP.NET 9 最小化 API - 第二版:設計、實作及優化 C# 與 .NET 9 的穩健 API
Proud, Nick
- 出版商: Packt Publishing
- 出版日期: 2024-12-06
- 售價: $1,520
- 貴賓價: 9.5 折 $1,444
- 語言: 英文
- 頁數: 252
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1805129120
- ISBN-13: 9781805129127
-
相關分類:
.NET、ASP.NET、C#
海外代購書籍(需單獨結帳)
相關主題
商品描述
Create APIs that embody simplicity, scalability, and precision with proven development techniques and the robust features of .NET
Key Features:
- Get to grips with API design, architecture, and development methodologies to create elegant and scalable APIs in .NET
- Get insights into contemporary trends and tools shaping the API industry
- Explore both basic and advanced topics such as optimization, data integration, and caching
- Purchase of the print or Kindle book includes a free PDF eBook
Book Description:
Written by an esteemed technology leader, a .NET specialist, and Microsoft MVP for Developer Technologies, Minimal APIs in ASP.NET 9 provides you with specialized insights into the latest advancements in .NET technology, particularly minimal APIs.
You'll get your first minimal API set up and running, before exploring the anatomy of a typical minimal API project, seeing how the framework can be used to create various HTTP endpoints, route, and validate requests, as well as enhancing those requests with custom middleware. After covering the basics, you'll move on to data mapping, managing important dependencies through dependency injection and integrating your minimal APIs with data sources such as Entity Framework, Dapper, and SQL databases for creating CRUD operations. The chapters also walk you through performance optimization, asynchronous programming, and caching, which'll allow you to examine the more advanced aspects of minimal API development, with code examples reflecting real-world scenarios.
By the end of this book, you'll be armed with the necessary best practices and skills needed for deploying performant, elegant, and scalable minimal APIs in .NET.
What You Will Learn:
- Become proficient in minimal APIs within the .NET Core 9 framework
- Find out how to ensure scalability, performance, and maintainability
- Work with databases and ORMs, such as Entity Framework and Dapper
- Optimize minimal APIs, including asynchronous programming, caching strategies, and profiling tools
- Implement advanced features like dependency injection, request validation, data mapping, and routing techniques
- Create and configure minimal API projects effectively
Who this book is for:
If you're a generalist developer looking for a fresh perspective on API development with an emphasis on minimalism, then this book is for you. Aimed at intermediate developers, this book strikes the right balance between accessibility and depth. The book assumes an intermediate level of C# and .NET knowledge, while providing sufficient guidance and explanations to help you progress confidently through the chapters.
Table of Contents
- Getting Up and Running with Minimal API Development
- Creating Your First Minimal API
- The Anatomy of a Minimal API
- Handling HTTP Methods and Routing
- The Middleware Pipeline
- Parameter Binding
- Dependency Injection in Minimal APIs
- Integrating Minimal APIs with Data Sources
- Object Relational Mapping with Entity Framework Core and Dapper
- Profiling and Identifying Bottlenecks
- Utilizing Asynchronous Programming for Scalability
- Caching Strategies for Enhanced Performance
- Best Practices for Minimal API Resiliency
- Unit Testing, Compatibility, and Deployment of Minimal APIs
商品描述(中文翻譯)
創建體現簡單性、可擴展性和精確性的 API,使用經驗豐富的開發技術和 .NET 的強大功能
主要特點:
- 熟悉 API 設計、架構和開發方法,以在 .NET 中創建優雅且可擴展的 API
- 獲取當前趨勢和工具的見解,這些趨勢和工具正在塑造 API 行業
- 探索基本和進階主題,如優化、數據整合和快取
- 購買印刷版或 Kindle 書籍包括免費 PDF 電子書
書籍描述:
由一位受人尊敬的技術領導者、.NET 專家和微軟開發技術 MVP 撰寫的《ASP.NET 9 中的最小 API》為您提供了有關 .NET 技術最新進展的專業見解,特別是最小 API。
您將設置並運行您的第一個最小 API,然後探索典型最小 API 項目的結構,了解如何使用框架創建各種 HTTP 端點、路由和驗證請求,以及如何使用自定義中介軟體增強這些請求。在掌握基礎知識後,您將進入數據映射、通過依賴注入管理重要依賴項,並將您的最小 API 與數據源(如 Entity Framework、Dapper 和 SQL 數據庫)整合,以創建 CRUD 操作。各章節還將引導您進行性能優化、非同步編程和快取,這將使您能夠檢視最小 API 開發的更高級方面,並提供反映現實場景的代碼示例。
在本書結束時,您將掌握部署高效、優雅和可擴展的 .NET 最小 API 所需的最佳實踐和技能。
您將學到什麼:
- 精通 .NET Core 9 框架中的最小 API
- 瞭解如何確保可擴展性、性能和可維護性
- 使用數據庫和 ORM,如 Entity Framework 和 Dapper
- 優化最小 API,包括非同步編程、快取策略和性能分析工具
- 實現高級功能,如依賴注入、請求驗證、數據映射和路由技術
- 有效創建和配置最小 API 項目
本書適合誰:
如果您是一位尋求對 API 開發有新視角的通才開發者,並強調簡約主義,那麼這本書適合您。本書針對中級開發者,恰到好處地平衡了可讀性和深度。本書假設您具備中級的 C# 和 .NET 知識,同時提供足夠的指導和解釋,幫助您自信地進步。
目錄
- 開始最小 API 開發
- 創建您的第一個最小 API
- 最小 API 的結構
- 處理 HTTP 方法和路由
- 中介軟體管道
- 參數綁定
- 最小 API 中的依賴注入
- 將最小 API 與數據源整合
- 使用 Entity Framework Core 和 Dapper 的物件關聯映射
- 性能分析和瓶頸識別
- 利用非同步編程實現可擴展性
- 提升性能的快取策略
- 最小 API 韌性的最佳實踐
- 最小 API 的單元測試、相容性和部署