Skip to main content
InterviewHubPRO
Section Overview
Q4

Question 4 of 50

Part 1: Request Pipeline, Dependency Injection & Web APIs (1 - 10)

8%
ASP.NET Core & Web API (50 Qs)•Part 1: Request Pipeline, Dependency Injection & Web APIs (1 - 10)

How does Kestrel work, and why is it used in front of or behind Reverse Proxies?

mid LevelMost AskedDependency InjectionPipesCI/CD & DevOps

In Simple Words: Kestrel is a cross-platform, asynchronous, high-throughput web server built directly into .NET:

  • In production, Kestrel runs directly or behind an edge reverse proxy (Nginx, YARP, AWS ALB, Azure App Gateway).
  • The reverse proxy handles SSL termination, compression, public DDoS protection, and domain routing, forwarding requests to Kestrel over fast internal HTTP/2 or HTTP/3.