What problem does it solve?
This Skill provides critical best practices for building robust, scalable, and maintainable Akka.NET actor systems, addressing common pitfalls in communication, error handling, and design.
Core Features & Use Cases
- Communication Patterns: Differentiates between local
EventStream and distributed DistributedPubSub.
- Supervision Strategies: Explains when and how to implement effective supervision.
- Error Handling: Guides on using
Try-Catch vs. supervision for different failure scenarios.
- Dependency Management: Compares
Props.Create with DependencyResolver for actor instantiation.
- Work Distribution: Outlines patterns like database queues and Akka.Streams throttling.
- Cluster/Local Abstraction: Provides patterns for testable actor systems in both local and clustered modes.
- Use Case: You are designing a new microservice using Akka.NET and need to ensure your actor communication is efficient, your error handling is robust, and your system is testable. This Skill will guide you through the critical design decisions.
Quick Start
Use the akka-net-best-practices skill to understand when to use EventStream versus DistributedPubSub for actor communication.