Building Web Applications with Erlang: Working with REST and Web Sockets on Yaws

Front Cover
"O'Reilly Media, Inc.", Jun 7, 2012 - Computers - 133 pages

Why choose Erlang for web applications? Discover the answer hands-on by building a simple web service with this book. If you’re an experienced web developer who knows basic Erlang, you’ll learn how to work with REST, dynamic content, web sockets, and concurrency through several examples. In the process, you’ll see first-hand that Erlang is ideal for building business-critical services.

Erlang was designed for fault-tolerant, non-stop telecom systems, and building applications with it requires a large set of skills. By the end of the book, you’ll have the information you need to build a basic web service and get it running.

  • Explore the power of Erlang and REST for building web services
  • Serve static and dynamic content with the Yaws web server
  • Use different methods for outputting data to user, such as encoding Erlang data structures into JSON or XML
  • Build an application to listen for HTTP requests, process them, store data, and return useful data
  • Go beyond the request-response model—push data to clients with web sockets
  • Use Erlang and Yaws to stream data from the server to a client

"A book which is truly needed and will help get Erlang to the next level."

—Francesco Cesarini, CEO of Erlang Solutions, author of Erlang Programming.

 

What people are saying - Write a review

We haven't found any reviews in the usual places.

Contents

Chapter 1 Building Scalable Systems with Erlang and REST
1
Chapter 2 Getting Started with Yaws
15
Dynamic Content in Yaws
33
Chapter 4 Implementing REST
41
Chapter 5 File Upload
59
Chapter 6 WebSockets
69
Chapter 7 Streaming
79
Chapter 8 Using the HTTP Client
83
Chapter 9 Building an Application with OTP
91
Appendix A Installing Erlang and Yaws
119
Appendix B Beyond Yaws
121
Appendix C Interfacing with Ruby and Python
125
Appendix D Using Erlang with Emacs
129
Copyright

Other editions - View all

Common terms and phrases

About the author (2012)

Zachary Kessin has been working on developing interactive web applications since 1994. In the last few years Zachary's focus has been on building complex applications in the browser with Javascript, browser-based testing with Selenium, functional programming, and code generation.

Bibliographic information