Interview Q&A · questions with model answers
Web Framework Internals Interview Questions
Part of the study plan for: Backend Engineer
Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.
-
Compare the shared-nothing model (PHP-FPM) with long-running application servers.
In the shared-nothing model each request bootstraps the application, runs, and discards all memory, so nothing leaks between requests but bootstrap cost is paid every time. Long-running servers…
-
How do synchronous workers and event loops differ in serving concurrent requests?
Synchronous workers (PHP-FPM, WSGI with Gunicorn, Java thread-per-request) dedicate a process or thread to each request, so concurrency equals the worker or thread count and a slow request only…
-
When do you use a guard, an interceptor, a pipe or an exception filter in NestJS?
Guards decide whether a request may proceed (authentication, roles). Interceptors wrap the handler for cross-cutting behaviour around it (logging, timing, caching, response mapping, timeouts). Pipes…
-
Compare request handling in Laravel and Symfony.
Laravel uses a middleware pipeline around the router and controller, with service providers configuring the container on boot. Symfony's HttpKernel dispatches events (kernel.request, controller,…
-
How does the ASP.NET Core request pipeline compare with Express or Laravel middleware?
ASP.NET Core builds a pipeline of middleware components registered in Program.cs (app.Use..., UseRouting, UseAuthentication, UseAuthorization, endpoint mapping); each calls next() and can act before…