Developer Voices

Designing Actor-Based Software (with Hugh McKee)

15 snips
May 15, 2024
Hugh McKee, Developer Advocate for Lightbend, discusses the actor model in software design, focusing on patterns, event-driven approaches, and architectural comparisons. He explores the evolution of event-driven systems, highlights scalability benefits, and emphasizes the importance of picking the right tools for robust system design.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ANECDOTE

Demo with 10 actors

  • Large language models are treated as black boxes due to their complex emergent behavior.
  • Hugh McKee built a demo with 10 actors demonstrating complex order processing and inventory management.
ADVICE

Idempotency

  • Design actors to be idempotent, handling duplicate messages without corrupting state.
  • Test actors by sending duplicate messages, ensuring correct state and reaction.
INSIGHT

Reduction Tree Pattern

  • The reduction tree pattern solves idempotency by representing stock as a tree of actors.
  • Leaves hold stock units, branches aggregate counts, enabling concurrent stock consumption.
Get the Snipd Podcast app to discover more snips from this episode
Get the app