Facilitating the spread of knowledge and innovation in professional software development



Choose your language

InfoQ Homepage News Presentation: Building RESTful Web Services with Erlang and YAWS

Presentation: Building RESTful Web Services with Erlang and YAWS


In this presentation recorded at QCon SF 2008, Steve Vinoski shows how to create RESTful web services using YAWS and Erlang. The presentation introduces YAWS and offers YAWS-Erlang code snippets on how to implement REST principles.

Watch: Building RESTful Web Services with Erlang and Yaws (1h)

Steve introduces YAWS – Yet Another Web Server – a highly concurrent web server optimized for delivering dynamic content. YAWS web pages can contain Erlang code which is executed before the resulting HTML is sent to the client. YAWS can run as a stand-alone application or it can be embedded into another Erlang application. According to some test results, YAWS can handle more traffic and way more connections than Apache.

Steve shows how to create RESTful web services using Erlang and YAWS. The concrete examples cover the following topics:

  • Resources and identifiers
  • Representations and media types
  • Hypermedia and linking
  • HTTP Methods
  • Conditional GET

While doing that, Steve explains the following concepts: Ehtml – an HTML page with Erlang code in it –,  Appmod – a YAWS application module –, Yapps – a YAWS application.

We need your feedback

How might we improve InfoQ for you

Thank you for being an InfoQ reader.

Each year, we seek feedback from our readers to help us improve InfoQ. Would you mind spending 2 minutes to share your feedback in our short survey? Your feedback will directly help us continually evolve how we support you.

Take the Survey

Rate this Article


Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p


Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.