Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Ruby on Rack: The Magic Between Request and Res...

Ruby on Rack: The Magic Between Request and Response

Are you ready to embark on an expedition into the core of Ruby web applications? Well, get ready, because it's time to delve into web development with Rack—the powerhouse that fuels popular Ruby web frameworks like Rails and Sinatra. In this captivating talk, we'll plunge deep into the inner workings of Rack, the unsung hero of web development. We'll uncover its secrets, bask in its versatility, and summon the magic of custom Rack middleware—where session management, authentication, and caching reside. For developers at all levels, this talk offers practical insights and fresh perspectives. Equip yourself with the prowess to wield Rack's middleware magic, making your development journey more efficient and enjoyable.

Meagan Waller

November 15, 2023
Tweet

More Decks by Meagan Waller

Other Decks in Technology

Transcript

  1. Rack aims to provide a minimal API to develop web

    applications in Ruby, for connecting web servers supporting Ruby and Ruby web frameworks.
  2. Rack aims to provide a minimal API to develop web

    applications in Ruby, for connecting web servers supporting Ruby and Ruby web frameworks.
  3. Rack aims to provide a minimal API to develop web

    applications in Ruby, for connecting web servers supporting Ruby and Ruby web frameworks.
  4. Rack aims to provide a minimal API to develop web

    applications in Ruby, for connecting web servers supporting Ruby and Ruby web frameworks.
  5. Rack aims to provide a minimal API to develop web

    applications in Ruby, for connecting web servers supporting Ruby and Ruby web frameworks.
  6. Rack aims to provide a minimal API to develop web

    applications in Ruby, for connecting web servers supporting Ruby and Ruby web frameworks.
  7. The simple protocol makes it easy to compose powerful applications

    by stacking rack apps and middleware on top of each other.
  8. The simple protocol makes it easy to compose powerful applications

    by stacking rack apps and middleware on top of each other.
  9. building a rack app rack middleware mounted rack apps static

    assets user sessions routing persistence web sockets template rendering
  10. "Our Rate Limiter is born with a purpose. In its

    initialization, we set parameters such as the allowed request limit (rate_limit) and the time window (time_window) within which this limit applies. The storage keeps track of requests per session."