Akka Hosting Actor Patterns
Patterns for entity actors with Akka.Hosting that run unchanged in local tests or clustered production.
- CCM score
- 67 of 100
- skills.sh installs
- 455
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers entity actor setup with
GenericChildPerEntityParentfor local mode and cluster sharding for production - Includes message extractors,
WithOrderActor-style hosting extensions,ITimeProviderwiring via the ActorSystem Scheduler, and akka-reminders - Enforces an
AkkaExecutionModeswitch so the same actor code runs with or without clustering - Designed for .NET teams building domain entity actors that need both unit testing and clustered deployment
Install
$ npx -y skills add aaronontheweb/dotnet-skills --skill akka-hosting-actor-patterns -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Akka.Hosting Actor Patterns
When to Use This Skill
Use this skill when:
- Building entity actors that represent domain objects (users, orders, invoices, etc.)
- Need actors that work in both unit tests (no clustering) and production (cluster sharding)
- Setting up scheduled tasks with akka-reminders
- Registering actors with Akka.Hosting extension methods
- Creating reusable actor configuration patterns
Core Principles
- Execution Mode Abstraction - Same actor code runs locally (tests) or clustered (production)
- GenericChildPerEntityParent for Local - Mimics sharding semantics without cluster overhead
- Message Extractors for Routing - Reuse Akka.Cluster.Sharding's IMessageExtractor interface
- Akka.Hosting Extension Methods - Fluent configuration that composes well
- ITimeProvider for Testability - Use ActorSystem.Scheduler instead of DateTime.Now
Execution Modes
Define an enum to control actor behavior:
Details
- Repository
- github.com/aaronontheweb/dotnet-skills
- Categories
- .NET & C#, Backend & APIs
- First seen
- Jun 3, 2026
Questions
What does the akka-hosting-actor-patterns skill do?
akka-hosting-actor-patterns teaches patterns for building entity actors with Akka.Hosting, including GenericChildPerEntityParent, message extractors, cluster sharding abstraction, akka-reminders, and ITimeProvider. It lets the same actor code run in local tests or in clustered production mode.
How do I install the akka-hosting-actor-patterns skill?
Run npx -y skills add aaronontheweb/dotnet-skills --skill akka-hosting-actor-patterns -y in a project to install it. Once installed, akka-hosting-actor-patterns gives the agent Akka.NET actor templates it can apply to entity actors in your project.
Who should use the akka-hosting-actor-patterns skill?
akka-hosting-actor-patterns is for .NET developers who build entity actors for domain objects such as users, orders or invoices. It also suits developers who need actors that work in both unit tests without clustering and in production with cluster sharding.
Where does akka-hosting-actor-patterns fit among .NET & C# skills?
akka-hosting-actor-patterns sits in the .NET & C# category, where dotnet-backend-patterns and dotnet-best-practices lead the list. Its own focus is Akka.Hosting entity actors that run in both local and clustered modes.
More from aaronontheweb/dotnet-skills
All 34- Akka Net Testing Patterns452
- Akka Net Management451
- Akka Net Aspire Configuration437
- Marketplace Publishing430
- Modern Csharp Coding Standards2.4K
- Csharp Concurrency Patterns1.7K
- Efcore Patterns1.6K
- Dependency Injection Patterns732
- Database Performance731
- Dotnet Project Structure723
- Type Design Performance716
- Api Design715
- Ilspy Decompile684
- Microsoft Extensions Configuration636
- Package Management635
- Serialization622
- Testcontainers Integration Tests615
- Dotnet Slopwatch611
- Crap Analysis605
- Playwright Blazor Testing582
- Dotnet Local Tools573
- Aspire Integration Testing545
- Mjml Email Templates535
- Aspire Service Defaults520
Similar to Akka Hosting Actor Patterns
More .NET & C#akka-net-aspire-configurationaaronontheweb/dotnet-skills437 installsConfiguration guide for wiring Akka.NET actor systems into .NET Aspire, covering clustering, SQL persistence, and Akka.Management.
akka-net-best-practicesaaronontheweb/dotnet-skills472 installsBest practices for Akka.NET covering EventStream vs DistributedPubSub, supervision, error handling, and DI-aware Props.
dotnet-domain-modelingwshaddix/dotnet-skills539 installsTactical DDD patterns in C# for pure domain models, covering aggregates, value objects, and domain events.
multi-agent-patternsneolabhq/context-engineering-kit1.4K installsMulti-agent architecture patterns that split complex tasks into isolated, context-focused subagent workflows.
ue-actor-component-architecturequodsoler/unreal-engine-skills1.6K installsUnreal Engine 5.8 C++ reference for Actor and component lifecycle, spawning, attachment, and composition.