Akka Net Best Practices
Best practices for Akka.NET covering EventStream vs DistributedPubSub, supervision, error handling, and DI-aware Props.
- CCM score
- 67 of 100
- skills.sh installs
- 477
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers actor communication patterns, supervision strategies, error handling, Props versus DependencyResolver, work distribution, and cluster/local abstractions
- Explains that
EventStreamis local to one process whileDistributedPubSubreaches subscribers across cluster nodes, with per-user, per-entity, and broadcast topic designs - Clarifies that a supervision strategy governs an actor's children rather than the actor itself, and that the default
OneForOneStrategyalready rate-limits restarts - Guides when to use try-catch for expected failures versus letting unknown exceptions propagate to supervision, and when to pick plain
PropsversusDependencyResolver
Install
$ npx -y skills add aaronontheweb/dotnet-skills --skill akka-net-best-practices -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Akka.NET Best Practices
When to Use This Skill
Use this skill when:
- Designing actor communication patterns
- Deciding between EventStream and DistributedPubSub
- Implementing error handling in actors
- Understanding supervision strategies
- Choosing between Props patterns and DependencyResolver
- Designing work distribution across nodes
- Creating testable actor systems that can run with or without cluster infrastructure
- Abstracting over Cluster Sharding for local testing scenarios
Reference Files
- work-distribution-patterns.md: Database queues, Akka.Streams throttling, outbox pattern
- cluster-local-abstractions.md: GenericChildPerEntityParent, IPubSubMediator, execution mode wiring
- async-cancellation-patterns.md: Actor-scoped CancellationToken, linked CTS, timeout handling
1. EventStream vs DistributedPubSub
Critical: EventStream is LOCAL ONLY
Context.System.EventStream is local to a single ActorSystem process. It does NOT work across cluster nodes.
Details
- Repository
- github.com/aaronontheweb/dotnet-skills
- Categories
- .NET & C#, Backend & APIs
- First seen
- Jun 3, 2026
Questions
What is the akka-net-best-practices skill for?
akka-net-best-practices gives guidance on Akka.NET design choices such as EventStream versus DistributedPubSub, supervision strategies, error handling, Props versus DependencyResolver, and work distribution patterns. It also covers cluster and local mode abstractions that keep Akka.NET actor systems testable.
When should I use EventStream instead of DistributedPubSub in Akka.NET?
The akka-net-best-practices skill explains that EventStream is local to a single ActorSystem process and does not reach other cluster nodes. For events that must reach actors across several cluster nodes, it directs you to Akka.Cluster.Tools.PublishSubscribe through DistributedPubSub.
How do I install the akka-net-best-practices skill?
Run this command in a project: npx -y skills add aaronontheweb/dotnet-skills --skill akka-net-best-practices -y. Once installed, the skill lets your agent apply these Akka.NET best practices while you write actor code.
More from aaronontheweb/dotnet-skills
All 34- Mailpit Integration471
- OpenTelemetry NET Instrumentation464
- Verify Email Snapshots464
- Akka Hosting Actor Patterns460
- Akka Net Testing Patterns457
- Akka Net Management456
- Akka Net Aspire Configuration442
- Marketplace Publishing435
- Modern Csharp Coding Standards2.4K
- Csharp Concurrency Patterns1.7K
- Efcore Patterns1.7K
- Database Performance741
- Dependency Injection Patterns741
- Dotnet Project Structure731
- Api Design723
- Type Design Performance723
- Ilspy Decompile695
- Package Management644
- Microsoft Extensions Configuration643
- Serialization630
- Testcontainers Integration Tests629
- Dotnet Slopwatch618
- Crap Analysis610
- Playwright Blazor Testing589
Similar to Akka Net Best Practices
More .NET & C#csharp-concurrency-patternsSkillaaronontheweb/dotnet-skills1.7K installsDecision guide for choosing among async/await, Channels, Rx, Akka.NET Streams, and Akka.NET Actors in .NET, avoiding locks where possible.
akka-hosting-actor-patternsSkillaaronontheweb/dotnet-skills460 installsPatterns for entity actors with Akka.Hosting that run unchanged in local tests or clustered production.
dotnet-backend-patternsSkillwshobson/agents20.2K installsMaster C#/.NET patterns for production APIs covering async, DI, EF Core, Dapper, caching, and testing.
dotnet-patternsSkillaffaan-m/ecc11.2K installsIdiomatic C# and .NET conventions covering immutability, dependency injection, async/await, and common application patterns.
microservices-patternsPluginsecondsky/claude-skills254 starsDesign microservices architectures with service boundaries, event-driven communication, and resilience patterns. Use when building distributed systems, decompos