2. Erlang in Industry
• Amazon
▫ SimpleDB for Amazon Elastic Compute Cloud (EC2)
• Yahoo!
▫ Delicious social bookmarking (50 million users)
• Facebook
▫ Chat service (100 million users)
• T-Mobile
▫ SMS and authentication systems
• Ericsson
▫ Support nodes in GPRS & 3G mobile networks
3. Open Source Erlang
• RabbitMQ
▫ AMQP based messaging
• CouchDB
▫ Document-oriented database
• Riak
▫ Distributed database
• Ejabberd
▫ XMPP based instant messaging (IM)
4. Why Erlang? Wooga Case Study
Before After
• Social Games • 1 App Server*
• Millions of daily users
• 80 – 200 App Servers
• 5000 – 7000 RPS
* Actually 2 for redundancy
5. Blackjack function
C# Erlang
public static isBlackjack([A,B]) when A+B==21 ->
bool IsBlackjack(int[] ranks) true;
{ isBlackjack(_) ->
return false.
ranks.Length == 2 &&
ranks[0] + ranks[1] == 21;
}