What problem does it solve?
This Skill provides critical guidance on designing and implementing robust, scalable, and testable applications using the Akka.NET actor framework, preventing common pitfalls and promoting best practices.
Core Features & Use Cases
- Communication Patterns: Differentiates between local
EventStream and distributed DistributedPubSub for effective messaging.
- Supervision & Error Handling: Clarifies actor supervision strategies and when to use
try-catch versus letting supervision handle errors.
- Dependency Management: Guides on choosing between
Props.Create() and DependencyResolver for actor instantiation.
- Work Distribution: Offers patterns for managing background tasks and preventing resource exhaustion.
- Testability: Demonstrates how to abstract cluster dependencies for local development and testing.
- Use Case: A developer building a high-throughput, distributed system with Akka.NET can use this Skill to ensure their communication, error handling, and deployment strategies are sound, leading to a more stable and maintainable application.
Quick Start
Use the akka-net-best-practices skill to understand when to use EventStream versus DistributedPubSub for actor communication.