Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

The Zen Of Erlang

0 views

Published on

A code-free presentation about the core principles and philosophies of
Erlang, explaining how the whole is greater than the sum of its parts.

This presentation takes a perspective rooted in showing the reasoning
between each of the building blocks (message-passing, isolated
processes, links and monitors, and so on), and shows how they can be
assembled together to create larger systems where interactions between
subsystems take a front seat in defining the fault tolerance of these
systems.

Published in: Technology
  • Be the first to comment

The Zen Of Erlang

  1. 1. 1 FRED HEBERT THE ZEN OF ERLANG
  2. 2. 2 LET IT CRASH
  3. 3. Eureka Presentation 3 BLOW
 IT UP ROCKET SCIENCE
  4. 4. Eureka Presentation 4 CONTROLLED BURNS FIGHT FIRE WITH FIRE
  5. 5. 5 PROCESSES FULLY ISOLATED
  6. 6. Eureka Presentation 6 ASYNCHRONOUS MESSAGE PASSING
  7. 7. 7 LINKS &
 MONITORS CODIFYING DEPENDENCIES
  8. 8. Eureka Presentation 8 PREEMPTIVE
 SCHEDULING DON’T TRUST THE DEVS
  9. 9. Eureka Presentation 9 FAILOVERS NETWORK AWARE
  10. 10. 10 LET IT CRASH
  11. 11. Eureka Presentation 11 SUPERVISION
 TREES STRUCTURE INTERACTIONS
  12. 12. 12 Old New 1 13 32 Old New 1 3 1 2 3 Old New 1 1 13 2 3 SUPERVISORS strategies
  13. 13. 13 WHY 
 RESTARTING 
 WORKS HEISENBUGS & FRIENDS
  14. 14. 14 REPEATABLE TRANSIENT CORE FEATURE EASY HARD SECONDARY FEATURE EASY, OFTEN OVERLOOKED HARD Why restarting works EASE OF FINDING BUGS IN DEVELOPMENT
  15. 15. 15 REPEATABLE TRANSIENT CORE FEATURE SHOULD NEVER ALL THE TIME SECONDARY FEATURE PRETTY OFTEN ALL THE TIME Why restarting works BUGS THAT HAPPEN IN PRODUCTION
  16. 16. 16 REPEATABLE TRANSIENT CORE FEATURE NO YES SECONDARY FEATURE DEPENDS YES Why restarting works BUGS HANDLED BY RESTARTS
  17. 17. 17 “I LIKE STATICALLY TYPED LANGUAGES, AND I RESTART MY DAEMON AFTER UNHANDLED EXCEPTIONS. WHAT IS ERLANG GONNA WIN ME ON FAULT TOLERANCE?” - FORUM USER “Notorious b.s.d.”
  18. 18. 18 ROOT TALLY DISTRICT QUEBEC ONTARIO … COUNT OCR C_OCR WORKER POOL STORAGE CACHE POOL WORKER POOL WORKER POOL WORKER WEB SERVER LIVE REPORTS SESSIONS … WEB WORKER WEB WORKER WEB WORKER SUPERVISION TREES
  19. 19. 19 ROOT TALLY DISTRICT QUEBEC ONTARIO … COUNT OCR C_OCR WORKER POOL STORAGE CACHE POOL WORKER POOL WORKER POOL WORKER WEB SERVER LIVE REPORTS SESSIONS … WEB WORKER WEB WORKER WEB WORKER SUPERVISION TREES
  20. 20. 20 ROOT TALLY DISTRICT QUEBEC ONTARIO … COUNT OCR C_OCR WORKER POOL STORAGE CACHE POOL WORKER POOL WORKER POOL WORKER WEB SERVER LIVE REPORTS SESSIONS … WEB WORKER WEB WORKER WEB WORKER SUPERVISION TREES REPORT_APP TALLY_APP STORAGE_APP
  21. 21. 21 but probably not… HOPEFULLY SLEEP AT NIGHT
  22. 22. Eureka Presentation 22 EXPECT FAILURE
  23. 23. 23 DANGER ZONE laid-back area The risk of getting comfortable WELL-DEFINED OPERATING CONDITIONS ERODE OVER TIME
  24. 24. Eureka Presentation 25 HOW THINGS INTERACT IN A NUTSHELL
  25. 25. 27 Totally advertising free books to you all QUESTIONS? @MONONCQC

×