Art of the Ruby Proxy for Scale, Performance, and Monitoring - RailsConf

In this session we will first walk through the basics of event-driven architectures and high-performance network programming in Ruby using the EventMachine framework.

Then we will examine three hands-on examples of how a simple proxy server, written in less than a hundred lines of code can become an indispensable tool for:

Performance A/B Testing: duplicating live traffic against multiple servers to compare speed, reliability and format of the response

Extending protocols: intercept packets and inject your own functionality into applications such as Memcache, Beanstalkd, and others

Traffic analysis: aggregate real-time visitor and performance analytics instead of repeatedly parsing the log files