8
STUPIDLY SIMPLE PROXYING IN RAILS PAM SELLE, COMCAST INTERACTIVE MEDIA

Simple Proxying in Rails

Embed Size (px)

DESCRIPTION

A lightning talk given for #PTW14 Dev Day describing simple proxying in Rails as an alternative path to being able to use CORS.

Citation preview

Page 1: Simple Proxying in Rails

STUPIDLY SIMPLE PROXYING IN RAILSPAM SELLE, COMCAST INTERACTIVE MEDIA

Page 2: Simple Proxying in Rails

ABOUT ME- Engineer for Xfinity.com

- Comcast Interactive Media

- Ruby

- JavaScript (PhillyJSDev!)

Page 3: Simple Proxying in Rails

WHAT?

A proxy is an intermediary used for two servers talking to another.

Page 4: Simple Proxying in Rails

BUT WHY?

- JavaScript!

- CORS

- … but we can’t always have nice things

Page 5: Simple Proxying in Rails

LET’S TALK ABOUT : RACK

User

Rack::Proxy

Authentication Layer

RailsEngines

Page 6: Simple Proxying in Rails

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”

Page 7: Simple Proxying in Rails

RACK PROXY DEMO!

Page 8: Simple Proxying in Rails

THANKS!

Pam Selle

@pamasaur

thewebivore.com