Re:Explain “Event-Driven” Web Servers to Your Grandma
by sausagefeet on Friday February 04, 2011 @10:38AM
(#2179744)
No I don't think so. He is talking about a single request here, you seem to be talking about a session.
Re:Explain “Event-Driven” Web Servers to Your Grandma
by mnutt on Friday February 04, 2011 @11:58AM
(#2180088)
The best pizza analogy I could come up with is:
In a traditional web server, the person making pizzas only makes one at a time and can't do anything else until that pizza is done and delivered. In an evented model, each pizza maker makes many pizzas at once, and just watches for events (the oven timer goes off) and acts on them. (takes the pizza out) Sometimes if a task is taking him too long, he'll ask an assistant to work on it so that he can get back to making pies.
Traditional Web Server:
The pizza shop receives a call for the initial order and starts the pie. Then the customer calls back periodically to check if the pie is done because the pizza shop cannot call back or deliver.