MountainWest RubyConf 2015 - Better Routing Through Trees

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=PjnlsIJYkn0



Duration: 28:14
584 views
9


by Jeremy Evans
This presentation will describe an approach to routing web requests efficiently through the use of a routing tree. A routing tree usually routes requests by looking at the first segment in request path, and sending it to the routing tree branch that handles that segment, repeating until the entire path is processed.
At any point while handling a request, the routing tree can operate on the request, for things like enforcing access control or object retrieval from a database, where such behavior is common for the entire branch. In addition to considering the request path, a routing tree also usually considers the request method, and may consider information from the request headers or request body when deciding how to route a request.
A routing tree’s request handling is similar to how a file system processes requests for files, where it looks at the first segment of the path, sees if it is a directory, and if so, looks for the rest of the path inside that directory.
This presentation will describe what makes routing requests using a routing tree faster and simpler than the routing approaches used by the popular ruby web frameworks.

Help us caption & translate this video!

http://amara.org/v/GWI8/




Other Videos By Confreaks


2015-04-01MountainWest JavaScript 2015 - ReactJS as the MVC by Zean Tsoi
2015-04-01MountainWest JavaScript 2015 - The Frankenstein Framework - The Polyglot future of the web
2015-04-01MountainWest JavaScript 2015 - Robots Love JavaScript (too) by Brad Midgley
2015-03-31Ruby Conference 2008 - Better Hacking With Training Wheels
2015-03-31MountainWest JavaScript 2015 - The Social Coding Contract by Justin Searls
2015-03-30MountainWest RubyConf 2015 - Humane Development
2015-03-30MountainWest RubyConf 2015 - "Good Enough"
2015-03-30MountainWest RubyConf 2015 - Make up your own "Hello, World!"
2015-03-30MountainWest RubyConf 2015 - On Memory
2015-03-30MountainWest RubyConf 2015 - Forensic Log Analysis with BigQuery
2015-03-30MountainWest RubyConf 2015 - Better Routing Through Trees
2015-03-30MountainWest RubyConf 2015 - Message Oriented Programming
2015-03-30MountainWest RubyConf 2015 - Writing Music with Ruby: A subtle introduction to music theory
2015-03-30MountainWest RubyConf 2015 - SVG charts and graphics with Ruby
2015-03-30MountainWest RubyConf 2015 - Twisty Little Passages
2015-03-29MountainWest RubyConf 2015 - Conventions Between Applications
2015-03-29MountainWest RubyConf 2015 - Data-Driven Refactoring
2015-03-29MountainWest RubyConf 2015 - Smoke & Mirrors: The Primitives of High Availability
2015-03-29MountainWest RubyConf 2015 - Learning Statistics Will Save Your Life
2015-03-29MountainWest RubyConf 2015 - Meaningful Mentorship for Developers
2015-03-29MountainWest RubyConf 2015 - Building a Culture of Learning