akka-hosting-actor-patterns

Community

Resilient Akka.NET hosting patterns for tests

AuthorAaronontheweb
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides patterns and tooling to host Akka.NET actors in both local test environments and clustered production, reducing boilerplate and improving testability.

Core Features & Use Cases

  • Generic child-per-entity parent for local testing that mimics cluster semantics without heavy overhead.
  • Message extractors using Akka.Cluster.Sharding interfaces for consistent routing.
  • Akka.Hosting extension methods for fluent configuration across local and cluster modes.
  • ITimeProvider integration to enable testable time-based logic via the ActorSystem.Scheduler.
  • Akka.Reminders integration to schedule durable tasks with both in-memory and SQL storage options.
  • Marker types for registry to reference parent shards and singleton actors clearly.
  • Scoped DI per message pattern to ensure fresh DbContext or scoped services during message handling.

Quick Start

Configure hosting with execution mode appropriate for your environment, then resolve actors through the registry or use the provided extension methods to wire up domain actors and optional reminders. For example, in startup code, call WithOrderDomainActors(executionMode) and register TimeProvider in the DI container. Then send messages to your actors to verify behavior.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: akka-hosting-actor-patterns
Download link: https://github.com/Aaronontheweb/dotnet-skills/archive/main.zip#akka-hosting-actor-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.