~/talk

Concurrency Models Demystified

Talkat DevWorld 2024 · 2024-02-29..03-01· [frontend-architecture]
slides:none on file

Compares three concrete models by building a 135‑URL word frequency pipeline and measuring results Sequential uses blocking HTTP calls then a single thread map Multithreaded uses producer/consumer with a blocking queue guarded by mutexes and semaphores causing race fixes deadlocks and over synchronization Actor design uses three actors (fetcher word counter orchestrator) implemented with Akka and Erlang style messaging, trading overhead and complexity for isolation Asynchronous single thread uses nonblocking IO with async/await and Promise.all and measures faster for IO bound work but fails for CPU heavy tasks

AI-written summary · about

  1. 0:00Concurrency challenges
  2. 1:17What concurrency means
  3. 3:05Shared memory sync
  4. 6:56Producer-consumer pattern
  5. 8:41Locks and sync problems
  6. 10:07Actor model messaging
  7. 13:40Actor implementation details
  8. 14:41Message passing trade-offs
  9. 15:24Async programming model
  10. 16:26Async in Hack
  11. 17:53Async trade-offs
  12. 18:56Concurrency models summary
  13. 19:39Choosing concurrency model
  14. 20:22Concurrency complexity advice
  15. 21:06Q&A
~/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.