没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Building Web Applications with
Erlang
Zachary Kessin
Beijing
•
Cambridge
•
Farnham
•
Köln
•
Sebastopol
•
Tokyo
Building Web Applications with Erlang
by Zachary Kessin
Copyright © 2012 Zachary Kessin. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions
are also available for most titles (http://my.safaribooksonline.com). For more information, contact our
corporate/institutional sales department: 800-998-9938 or corporate@oreilly.com.
Editor: Simon St. Laurent
Production Editor: Melanie Yarbrough
Proofreader: Emily Quill
Cover Designer: Karen Montgomery
Interior Designer: David Futato
Illustrator: Robert Romano
Revision History for the First Edition:
2012-06-04 First release
See http://oreilly.com/catalog/errata.csp?isbn=9781449309961 for release details.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of
O’Reilly Media, Inc. Building Web Applications with Erlang, the cover image of a Silver Moony, and
related trade dress are trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc., was aware of a
trademark claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and author assume
no responsibility for errors or omissions, or for damages resulting from the use of the information con-
tained herein.
ISBN: 978-1-449-30996-1
[LSI]
1338840029
Table of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
1. Building Scalable Systems with Erlang and REST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Why Erlang? 1
Erlang’s Advantages 2
Lack of Types 3
OTP—For More Than Just Telecom! 4
Why Web Services? Why REST? 4
New Opportunities for Scaling and Resilience 6
Cloud Computing 6
System Architecture and Erlang Scaling 7
Data Storage Options 9
2. Getting Started with Yaws . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Working with Yaws 16
Starting Yaws 16
Serving Static Files 17
Compiling, Loading, and Running Code 18
Clustering Yaws 20
Dynamic Content in Yaws 21
EHTML 24
Headers and Redirects 25
Templates 26
ErlyDTL 26
Logging 30
Erlang OTP error_logger 31
3. Appmods: Dynamic Content in Yaws . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Appmod Configuration 34
When the URI Does Not Correspond to a File 34
Cookies 35
iii
剩余153页未读,继续阅读
资源评论
- jcl_82015-03-12Erlang的书不多,讲应用的更少,这本书是很少的一本应用方面的书
jasonqucccc
- 粉丝: 2
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功