Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Event Driven Architecture Concepts in Web Technologies - Part 2

The slides are about event driven concepts in Nginx.

  • Login to see the comments

  • Be the first to like this

Event Driven Architecture Concepts in Web Technologies - Part 2

  1. 1. Event-Driven Event-Driven Architecture Concepts in Web Technologies - Part 2 Hamidreza Soleimani - May 2013
  2. 2. Get excited! What will you learn? ● Reminding what is Process, Thread & Event? ● What is exactly a Web Server? ● Well, now what is Event-based Web Server? ● Solve Nginx puzzle! ● WordPress.com ● GitHub.com ● Netflix.com ● Hulu.com ● ...
  3. 3. History Processes > Threads > Events Thread(s)Event(s) Process(s)User(s)
  4. 4. Web Servers Architecture and Concepts http://tehlug.org 74.207.236.196 Client DNS Tehlug Server Web Server DataBase GET index.php Retrieve data Retrieve data HTTPrequest
  5. 5. Web Servers War Thread-Based Vs. Event-Based 800 kb 80 kbps 1000 Clients 1Thread 1MB 999Threads 999MB 1000MBRAM 10 Sec. 800 kb 80 kbps 1000 Clients Just 1 Thread (By Multiplexing Connections) 10MBRAM 10 Sec. HighCPUUsage LowCPUUsage
  6. 6. Nginx Puzzle Solve it here! Research and Design by: Hamidreza Soleimani <www.MeloBit.com> Apache PHP-FPM Port 80 Port 9000 Port 9001 Without htaccess With htaccess
  7. 7. Questions? hamidreza-s.github.io

×