~/talk

Debugging Clojure Services Under Stress

Talkat Clojure/north 2020 · 2020-06-25..06-26· [observability]
slides:none on file

Three-step debugging: identify the unknown, act to restore service, then improve to close the loop. A real incident traces a backed-up batch queue to a new slow DB query run on a replica, reproduced there, hotfixed in ~10 minutes and permanently patched the next day. Practices include continuous deploys with quick rollbacks, a checked-in diagnostic namespace deployed to prod, logging to search plus Sentry and OfficeGenie alerts, use the REPL, sketch architecture with plantuml, beware accidental edits like changing 25,000 records instead of 200.

AI-written summary · about

  1. 0:00Intro
  2. 2:20WHY IS DEBUGGING PRODUCTION ISSUES STRESSFUL?
  3. 2:56STEP 1: MENTAL PROCESS OF DEBUGGING
  4. 3:45DEBUGGING PROCESS
  5. 5:27MY DIAGNOSTIC STEPS FOR PRODUCTION ISSUES
  6. 7:26DEBUGGING WITH CLOJURE
  7. 8:01MY COPING STRATEGIES
  8. 9:18NEGATIVE THREAT
  9. 10:00GET PREPARED Pakistan
  10. 12:22RECORD DEBUGGING STEPS
  11. 13:10DEVELOP A DEBUGGING PLAYBOOK scope problem - control flow diagrams, UMLS
  12. 14:52DEBUGGING WITH JUPYTER NOTEBOOK
  13. 15:08DOCUMENT CONTROL FLOW
  14. 17:00GETTING YOUR SYSTEM PREPARED TO MAKE YOUR LIFE EASIER
  15. 17:23CONTINUOUS DEPLOYMENT + ROLLBACK CAPABILITY
  16. 18:44DECOUPLE BUSINESS LIFECYCLES
  17. 19:43ROUTE ERRORS BY LEVELS
  18. 21:54ACTIONABLE ERROR MESSAGE
  19. 22:36DESIGN FOR FAILURES
  20. 23:04CLEAN CODE
  21. 24:00BASICALLY, PRACTICE GOOD SOFTWARE ENGINEERING
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.