Building Web Applications with Erlang

Working with REST and Web-Sockets on Yaws

Specificaties
Paperback, 133 blz. | Engels
O'Reilly | 1e druk, 2012
ISBN13: 9781449309961
Rubricering
Hoofdrubriek : Computer en informatica
O'Reilly 1e druk, 2012 9781449309961
Verwachte levertijd ongeveer 16 werkdagen

Samenvatting

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

Specificaties

ISBN13:9781449309961
Taal:Engels
Bindwijze:paperback
Aantal pagina's:133
Uitgever:O'Reilly
Druk:1

Over Zachary Kessin

Zachary Kessin first discovered the world wide web around 1993 when NCSA Mosaic was still the dominant browser. He has been building applications on the internet since 1995 when perl and CGI were the way to go. He has worked in the Boston Area, London, Tel Aviv and Jerusalem.

Andere boeken door Zachary Kessin

Inhoudsopgave

Preface

1. Building Scalable Systems with Erlang and REST
-Why Erlang?
-Why Web Services? Why REST?
-New Opportunities for Scaling and Resilience

2. Getting Started with Yaws
-Working with Yaws
-Dynamic Content in Yaws
-Templates
-Logging

3. Appmods: Dynamic Content in Yaws
-Appmod Configuration
-When the URI Does Not Correspond to a File
-Cookies
-Session Handling
-Access Control
-Interacting with Erlang Services and Business Logic Layers

4. Implementing REST
-Decoding a Request
-Response and Headers
-Building the Response
-Responding to the REST Request
-A Full Example

5. File Upload
-The File Upload Request
-Saving to Disk
-Putting It All Together
-Storage in a Distributed System
-Saving to Amazon S3

6. WebSockets
-The WebSocket Request
-Basic WebSocket Handler
-Advanced WebSocket Handler

7. Streaming
-Simple Streaming

8. Using the HTTP Client
-Making a Request
-Using OAuth

9. Building an Application with OTP
-Directory Structure
-Building an Application Server
-The Generic Server
-The Multicast Server
-Interfacing the Server with the Web
-Some Client-Side Code
-Let's Have Some Adult Supervision Around Here!
-A Little Optimization
-Bundling as an Application
-The App File
-Wrapping Up OTP

Appendix A: Installing Erlang and Yaws
Appendix B: Beyond Yaws
Appendix C: Interfacing with Ruby and Python
Appendix D: Using Erlang with Emacs

Net verschenen

Rubrieken

Populaire producten

    Personen

      Trefwoorden

        Building Web Applications with Erlang