API Development in C# (.NET): From Basics to Industrial Application
300 pages
English
PDF
4.5

API Development in C# (.NET): From Basics to Industrial Application

API Development in C# (.NET): From Basics to Industrial Application

Author:

Year:

Summary:

The book "API Development in C# (.NET)" is a comprehensive practical guide that will take you from designing your first endpoint to building production-grade microservices. The author, Alexey Voronov, a senior developer with 10 years of experience, shares proven patterns and best practices of the .NET ecosystem.



What is this book about?

You will learn how to create high-performance and secure APIs using modern technologies:

  • ASP.NET Core — configuring routing, Middleware, dependency injection
  • RESTful services — resource design, versioning, pagination, filtering
  • gRPC — efficient binary communication, Protocol Buffers, streaming
  • Entity Framework Core — Code First, migrations, query optimization, working with PostgreSQL and SQL Server
  • Authentication and Authorization — JWT, OAuth 2.0, IdentityServer, access policies
  • Testing — unit tests, integration tests, Postman, Swagger/OpenAPI
  • Deployment and Monitoring — Docker, Kubernetes, logging (Serilog), metrics (Prometheus)


Who is this book for?

  • C# Backend developers transitioning from monoliths to microservices
  • Fullstack programmers looking to master the server-side on .NET
  • Team Leads and Architects seeking proven patterns for API design
  • Students and Junior developers who want to gain systematic knowledge and a project portfolio


What will you learn and be able to do after reading?

  • Design REST APIs considering HATEOAS and OpenAPI specifications
  • Implement CQRS and Event Sourcing using MediatR and RabbitMQ
  • Configure CI/CD pipelines for .NET projects
  • Conduct load testing and profiling
  • Write clean, testable code using Repository and Unit of Work patterns
  • Integrate third-party services via HttpClient and Polly


Each chapter contains practical examples ready for use in real projects. At the end of the book, you will find the complete code for a working microservice for an online store with Swagger documentation and deployment in Docker.



The book is suitable both for self-study and as a desktop reference. All examples are relevant for .NET 8 and Visual Studio 2022.

Recommendations