Day 1: HTTP Request as State Machine

Webmachine excels at making complex HTTP processing simple, and its sweet spot is very much on the back end of web systems. It is used to power APIs such as Opscode’s Chef Server API as well as HTTP interfaces to distributed systems like Basho’s Riak database. We’ll look at Webmachine through the lens of a link-shortening service, and by the end of today, you’ll be ready to make your very own link shortener.

Link shorteners have proliferated since they first appeared around 2002,[35] turning lengthy URLs into compressed sequences of alphanumerics that fit in limited space or require less typing. They work by redirecting from the shortened link to the destination by using a big lookup table. They don’t ...

Get Seven Web Frameworks in Seven Weeks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.