Download - Simple Proxying in Rails
Transcript
STUPIDLY SIMPLE PROXYING IN RAILSPAM SELLE, COMCAST INTERACTIVE MEDIA
ABOUT ME- Engineer for Xfinity.com
- Comcast Interactive Media
- Ruby
- JavaScript (PhillyJSDev!)
WHAT?
A proxy is an intermediary used for two servers talking to another.
BUT WHY?
- JavaScript!
- CORS
- … but we can’t always have nice things
LET’S TALK ABOUT : RACK
User
Rack::Proxy
Authentication Layer
RailsEngines
RACK::PROXY- Disclaimer: We use our own lib
- Gem! Rack Streaming Proxy https://github.com/zerowidth/rack-streaming-proxy
- “Streaming proxy for Rack, the rainbows to Rack::Proxy's unicorn”
RACK PROXY DEMO!
THANKS!
Pam Selle
@pamasaur
thewebivore.com