ASP.NET Core 9 Web API Cookbook: Over 60 hands-on recipes for building and securing enterprise web APIs with REST, GraphQL, and more

ASP.NET Core 9 Web API Cookbook: Over 60 hands-on recipes for building and securing enterprise web APIs with REST, GraphQL, and more

ASP.NET Core 9 Web API Cookbook: Over 60 hands-on recipes for building and securing enterprise web APIs with REST, GraphQL, and more

Author: Luke Avedon (Author), Garry Cabrera (Author)

ASIN: ‎ 1835880347

Publisher finelybook 出版社:‏ ‎Packt Publishing

Edition 版本:‏ ‎ N/A

Publication Date 出版日期:‏ ‎ 2025-04-24

Language 语言: ‎ English

Print Length 页数: ‎ 344 pages

ISBN-10: ‎ 1835880355

ISBN-13: ‎ 9781835880357

Book Description

Embrace the future of web API development with ASP.NET Core 9—from REST best practices to real-time SignalR, and from HybridCache to .NET Aspire deployment—through hands-on recipes and proven methodologies

Key Features

  • Master the lifecycle of ASP.NET Core web APIs by confidently building, testing, monitoring, and securing your applications
  • Explore advanced topics like GraphQL, SignalR, and microservices to create feature-rich APIs
  • Discover cloud deployment strategies to ensure your APIs are ready for modern infrastructure
  • Purchase of the print or Kindle book includes a free PDF eBook

Book Description

Discover what makes ASP.NET Core 9 a powerful and versatile framework for building modern web APIs that are both scalable and secure. This comprehensive, recipe-based guide leverages the authors’ decade-long experience in software development to equip developers with the knowledge to create robust web API solutions using the framework’s most powerful features.

Designed for intermediate to advanced .NET developers, this cookbook contains hands-on recipes that demonstrate how to efficiently build, optimize, and secure APIs using this cutting-edge technology. You’ll master essential topics, such as creating RESTful APIs, implementing advanced data access strategies, securing your APIs, creating custom middleware, and enhancing your logging capabilities. The book goes beyond traditional API development by introducing GraphQL, SignalR, and gRPC, offering insights into how these technologies can extend the reach of your APIs. To prepare you for real-world challenges, the recipes cover testing methodologies, cloud deployment, legacy system integration, and advanced concepts like microservices and Hangfire.

By the end of this book, you’ll gain the expertise needed to build and manage enterprise-grade web APIs with ASP.NET Core 9.

What you will learn

  • Implement HybridCache with stampede protection to replace distributed and in-memory caches
  • Perform unit, integration, and contract testing to ensure robustness and reliability
  • Optimize API performance using output and response caching with tag-based invalidation
  • Design custom middleware for rate limiting, centralized exception handling, health checks, and more
  • Streamline API troubleshooting using Serilog’s structured logging and Seq’s powerful log visualization for quick insights
  • Secure your APIs with authentication, authorization, and HTTPS enforcement

Who this book is for

This book is for intermediate to advanced developers—whether you’re a .NET, backend, full-stack, or DevOps professional—looking to build and secure APIs with ASP.NET Core. It’s also ideal for those experienced in Java or Go who want to transition to ASP.NET Core, or developers familiar with C# and .NET aiming to deepen their API skills. A working knowledge of web APIs and the .NET ecosystem is assumed, so you can jump straight into practical recipes

Table of Contents

  1. Practical Data Access in ASP.NET Core Web APIs
  2. Mastering Resource Creation and Validation
  3. Securing Your Web API
  4. Creating Custom Middleware
  5. Creating Comprehensive Logging Solutions
  6. Real-Time Communication with SignalR
  7. Building Robust API Tests: a Guide to Unit and Integration Testing
  8. GraphQL: Designing Flexible and Efficient APIs
  9. Deploying and Managing Your WebAPI in the Cloud
  10. The Craft of Caching
  11. Beyond the Core

About the Author

Luke Avedon has been contributing to the software development lifecycle for nearly a decade. In recent years, he has focused exclusively on .NET development. He helped to design and implement an ASP.NET Core API for a leading healthcare company, serving as the backbone for a system supporting nearly one billion USD in revenue. Luke has also developed secure solutions for integrating vendor APIs and upgrading legacy .NET APIs to help comply with Department of Defense GCC high-security standards. Additionally, he contributed to the development of large-scale AI models for a major technology company, gaining valuable insights into the intersection of AI and software engineering.

Garry Cabrera has seven years of expertise in building robust backend APIs for major financial institutions, including Credit Suisse and Bank of America. Though he specializes in .NET and Java development, Garry’s technical versatility extends to Python and Groovy, enabling him to adapt solutions to diverse requirements. His deep knowledge of relational databases—SQL Server, MySQL, and Oracle—combined with proficiency in ORMs such as Hibernate, allows him to create efficient and scalable data access layers. Garry’s integration expertise with Apache Camel and SSIS has proven invaluable in establishing seamless data flows across complex enterprise systems.

Amazon Page

下载地址

PDF, (conv), EPUB | 11 MB | 2025-05-04

打赏
未经允许不得转载:finelybook » ASP.NET Core 9 Web API Cookbook: Over 60 hands-on recipes for building and securing enterprise web APIs with REST, GraphQL, and more

评论 抢沙发

觉得文章有用就打赏一下

您的打赏,我们将继续给力更多优质内容

支付宝扫一扫

微信扫一扫