Erlang Web Framework

Cuong Thai
www.htk-inc.com
bronzeboyvn@gmail.com
Content
1. Why Erlang?
●
●
●

concurrency
distributed
fault-tolerance

2. Are you kidding me?
●
●

10 times faster than PH...
Concurrency

Concurrency for our
web applications and
API backends means
that we'd like our
htop look like this
Concurrency

Erlang is easy capable of spawning hundreds of
thousands of processes on a single system running
on commodity...
Distributed
You can have a number of machines across
net-work happily chatting with another.

Bill

Rick

Zoey

Daryl
Distributed
Process communication by copying
Location transparency (clustering)

Bill

Rick

Zoey

Daryl
Fault-tolerance
Fault-tolerance
Fault-tolerance
Fault-tolerance
Fault-tolerance
Are you kidding me?
“With PHP
framework you
typically see page
generation times
between 150 and
600 milliseconds.
Zotonic ...
siege -c15 http://localhost:8001/admin -b -t30s
** SIEGE 2.72
** Preparing 15 concurrent users for battle.
The server is n...
siege -c150 http://localhost:8001/admin -b -t30s
** SIEGE 2.72
** Preparing 150 concurrent users for battle.
The server is...
Are you kidding me?

metabrew.com
Richard Jones co-founded and was CTO of last.fm for 6 years
Database-driven website
●

Hello World page

●

Hello World JSON

●

Hello World template

●

BossMQ
Q&A
Thank you for your attention!
Ref.
●

learnyousomeerlang.com

●

Erlang and OTP in action (Martin Logan, Eric Merritt, Ric...
Upcoming SlideShare
Loading in …5
×

Barcamp2013

266 views
206 views

Published on

Published in: Technology, News & Politics
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
266
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Barcamp2013

  1. 1. Erlang Web Framework Cuong Thai www.htk-inc.com bronzeboyvn@gmail.com
  2. 2. Content 1. Why Erlang? ● ● ● concurrency distributed fault-tolerance 2. Are you kidding me? ● ● 10 times faster than PHP c10k, 1000msg/sec, 24hours, 78Mb 3. Database-driven website.
  3. 3. Concurrency Concurrency for our web applications and API backends means that we'd like our htop look like this
  4. 4. Concurrency Erlang is easy capable of spawning hundreds of thousands of processes on a single system running on commodity hard-ware.
  5. 5. Distributed You can have a number of machines across net-work happily chatting with another. Bill Rick Zoey Daryl
  6. 6. Distributed Process communication by copying Location transparency (clustering) Bill Rick Zoey Daryl
  7. 7. Fault-tolerance
  8. 8. Fault-tolerance
  9. 9. Fault-tolerance
  10. 10. Fault-tolerance
  11. 11. Fault-tolerance
  12. 12. Are you kidding me? “With PHP framework you typically see page generation times between 150 and 600 milliseconds. Zotonic has a typical page generation time of 10 milliseconds or less.” How about you, Chicago Boss?
  13. 13. siege -c15 http://localhost:8001/admin -b -t30s ** SIEGE 2.72 ** Preparing 15 concurrent users for battle. The server is now under siege... Lifting the server siege... Transactions: Availability: done. 21144 hits 100.00 % Elapsed time: 29.12 secs Data transferred: 116.59 MB Response time: 0.02 secs Transaction rate: 726.10 trans/sec Throughput: 4.00 MB/sec Concurrency: 14.98 Successful transactions: 21144 Failed transactions: 0 Longest transaction: 0.05 Shortest transaction: 0.00
  14. 14. siege -c150 http://localhost:8001/admin -b -t30s ** SIEGE 2.72 ** Preparing 150 concurrent users for battle. The server is now under siege... Lifting the server siege... Transactions: Availability: done. 20247 hits 100.00 % Elapsed time: 29.32 secs Data transferred: 111.64 MB Response time: 0.22 secs Transaction rate: 690.55 trans/sec Throughput: 3.81 MB/sec Concurrency: 149.36 Successful transactions: 20247 Failed transactions: 0 Longest transaction: 0.46 Shortest transaction: 0.01
  15. 15. Are you kidding me? metabrew.com Richard Jones co-founded and was CTO of last.fm for 6 years
  16. 16. Database-driven website ● Hello World page ● Hello World JSON ● Hello World template ● BossMQ
  17. 17. Q&A
  18. 18. Thank you for your attention! Ref. ● learnyousomeerlang.com ● Erlang and OTP in action (Martin Logan, Eric Merritt, Richard Carlsson) ● metabrew.com ● infrequently.org/2006/03/comet-low-latency-data-for-the-browser/ ● zotonic.com/features ● github.com/evanmiller/ChicagoBoss/wiki/An-Evening-With-Chicago-Boss

×