BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

Presentation: Building RESTful Web Services with Erlang and YAWS

| by Abel Avram on May 18, 2009. Estimated reading time: less than one minute | NOTICE: The next QCon is in New York Jun 26-30, 2017. Join us!

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.

Rate this Article

Adoption Stage
Style

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.

Tell us what you think

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

Email me replies to any of my messages in this thread
Community comments

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

Email me replies to any of my messages in this thread

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

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and dont miss out on content that matters to you

BT