CoRecursive: Coding Stories

Tech Talk: Erlang And Distributed Systems with Steven Proctor

May 2, 2018
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

Function vs Process Boundaries

  • Erlang processes run functions and handle messages via mailboxes, isolating state and concurrency.
  • Deciding what runs as a function vs. a process depends on concurrency and failure domain boundaries.
ADVICE

Define Concurrency for Process Design

  • Identify concurrent operations and failure domains to determine process boundaries.
  • Keep related state and lifecycle within a single process to isolate failures effectively.
INSIGHT

Single-Threaded Processes Simplify Concurrency

  • Each Erlang process is single-threaded, so it serializes access to its state and avoids concurrent modification issues.
  • Concurrency arises by having many isolated processes running in parallel, not by sharing mutable state.
Get the Snipd Podcast app to discover more snips from this episode
Get the app