This document summarizes the Rails request lifecycle and describes various middlewares used in Rails. It begins by explaining what a request is and how it travels from the browser to the Rails application. It then discusses the roles of the web server and app server. The bulk of the document describes each middleware in the Rails stack, from Rack middlewares to ActionDispatch middlewares to ActiveRecord middlewares. It explains what each middleware does to filter requests and responses. Finally, it outlines how the request travels through the middleware stack to the routes, controller, and back out again to complete the response sent to the client.