simple proxying in rails

Post on 15-May-2015

332 Views

Category:

Engineering

2 Downloads

Preview:

Click to see full reader

DESCRIPTION

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

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

top related