
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.
AI Snips
Chapters
Transcript
Episode notes
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.
Idempotency
- Design actors to be idempotent, handling duplicate messages without corrupting state.
- Test actors by sending duplicate messages, ensuring correct state and reaction.
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.
