A Brief Introduction to ErlangPhillip TrelfordLightning Talk 2012
Erlang in Industry• Amazon ▫ SimpleDB for Amazon Elastic Compute Cloud (EC2)• Yahoo! ▫ Delicious social bookmarking (50 mi...
Open Source Erlang• RabbitMQ ▫ AMQP based messaging• CouchDB ▫ Document-oriented database• Riak ▫ Distributed database• Ej...
Why Erlang? Wooga Case StudyBefore                        After•   Social Games              • 1 App Server*•   Millions o...
Blackjack functionC#                               Erlangpublic static                    isBlackjack([A,B]) when A+B==21 ...
Coding Erlang  Text                REPL   Winning Editor
Card Shuffle in Erlang REPLRanks=["A","1","2","3","10","J","Q","K"].Suits=[clubs,diamonds,hearts,spades].Deck=[{Rank,Suit}...
Why learn Erlang?• Money ▫ Erlang will instantly net you a $100,000 salary• Power ▫ 99.9999999% Reliability• Respect ▫ Sca...
Erlang Book Stack
Next Steps• Read ▫ Learn You Some Erlang For Great Good!• Watch ▫ Erlang: The Movie• Try ▫ Coding Katas• Get the T-Shirt ▫...
Upcoming SlideShare
Loading in …5
×

A Brief Introduction To Erlang

1,295 views

Published on

A Brief Introduction To Erlang - Lighting Talk

Published in: Technology, News & Politics
  • Be the first to comment

A Brief Introduction To Erlang

  1. 1. A Brief Introduction to ErlangPhillip TrelfordLightning Talk 2012
  2. 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. 3. Open Source Erlang• RabbitMQ ▫ AMQP based messaging• CouchDB ▫ Document-oriented database• Riak ▫ Distributed database• Ejabberd ▫ XMPP based instant messaging (IM)
  4. 4. Why Erlang? Wooga Case StudyBefore After• Social Games • 1 App Server*• Millions of daily users• 80 – 200 App Servers• 5000 – 7000 RPS * Actually 2 for redundancy
  5. 5. Blackjack functionC# Erlangpublic static isBlackjack([A,B]) when A+B==21 -> bool IsBlackjack(int[] ranks) true;{ isBlackjack(_) -> return false. ranks.Length == 2 && ranks[0] + ranks[1] == 21;}
  6. 6. Coding Erlang Text REPL Winning Editor
  7. 7. Card Shuffle in Erlang REPLRanks=["A","1","2","3","10","J","Q","K"].Suits=[clubs,diamonds,hearts,spades].Deck=[{Rank,Suit}||Rank<-Ranks,Suit<-Suits].Tuples=[{random:uniform(),Card}||Card<-Deck].[Card||{_,Card}<-lists:keysort(1,Tuples)].
  8. 8. Why learn Erlang?• Money ▫ Erlang will instantly net you a $100,000 salary• Power ▫ 99.9999999% Reliability• Respect ▫ Scala Akka ▫ F# Agents ▫ TPL DataFlow (TDF)
  9. 9. Erlang Book Stack
  10. 10. Next Steps• Read ▫ Learn You Some Erlang For Great Good!• Watch ▫ Erlang: The Movie• Try ▫ Coding Katas• Get the T-Shirt ▫ #Erlang

×