Flashcard (Front and Back)

Front (Question)

Describe how mongrel works (esoteric flashcard)

Back (Answer)
  • A request hits mongrel.
  • Mongrel makes a thread and parses the HTTP request headers.
  • If the body is small, then it puts the body into a StringIO.
  • If the body is large then it streams the body to a temp file.
  • When the request is "cooked" it call the RailsHandler.
  • The RailsHandler sees if the file is possibly page cached, if so then it sends the cached page.
  • Now you're finally ready to process the Rails request. LOCK!
  • Still locked, Mongrel calls the Rails Dispatcher to handle the request, passing in the headers, and StringIO or Tempfile for body.
  • When Rails is done, UNLOCK! . Rails has (hopefully) put all of its output into a StringIO.
  • Mongrel then takes this StringIO output, any output headers, and streams them back to the client super fast.

minor processing related



Memory Work Out Sessions use brain research to accelerate and improve memorization. Automatically scheduled daily review drills ensure sure you don't forget.





or Find more than 100,000 other things to learn

Educators and Trainers:

Tour YoYoBrain's resources for learning and teaching
Previous Card See the whole card set Next Card


Comments:

Other flashcards from Mongrel
Mongrel is described in what way in ...       Mongrel is compared with what web ser...       Creator of Mongrel       Mongrel is developed on what programm...       Documentation for Mongrel       The creators of Mongrel describe it how?       Three key technologies that are used ...       Component of Mongrel responsible for ...       How does Mongrel support threading       What platforms that already work with...       Is Ruby on Rails thread safe?       How does Mongrel handle Rails"       How does mongrel handle things if you...       Describe how mongrel works (esoteric ...       command to remove svn files so they c...       Does mongrel have SSL       Recommend solution to avoid giving pe...       Recommended way to get Mongrel instal...       Common causes of Mongrel stopping pro...       Common problem with logs that can sto...       IMPORTANT security idiosynchrocy of u...       common cause of Mongrel not functioni...       Common cause of Mongrel not functioni...       Common cause of Mongrel not functioni...       Common cause of mongrel not functioni...       Recommended way to get mongrel server...       what is num-procs?       how does the timeout setting throttl...       Known problem related to MySQL       idiosyncrocy of Mongrel and PIDs       Most common cause of MySQL "lost conn...       How can you run some code before rail...       What does BAD CLIENT mean       purpose of stop -f       Mongrel: purpose of -p option       install command for mongrel via rubygems       purpose of start -c       command to stop Mongrel       command to run mongrel in the background       command to see options you can set fo...       Option Mongrel provides for debugging...       command option that lets you set an a...       -a option of start command       purpose of -l option       -n option on start, default value       purpose of start option -t,--timeout ...       start -c option       purpose of -r option of start command       -B option of start command       -C option of start command      





App_store_badge
What's new | About Us | Privacy Policy | Copyright Policy | Contact Us

Copyright 2007-2025 YoYoBrain.com

Managed By W3mg