In short.
Akka.NET Best Practices is an assistant skill for C# developers designing actor systems, but its implementation examples need review before reuse. It offers useful explanations of process-local messaging, parent-to-child supervision and cancellation of background work. However, its local messaging implementation does not rotate recipients as described, and its database queue example leaves crash recovery unspecified. Compilation, runtime behavior, assistant effectiveness and performance are unassessed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes skills/akka-best-practices/SKILL.md, async-cancellation-patterns.md, cluster-local-abstractions.md and work-distribution-patterns.md, together with the repository-level LICENSE, at commit 5ca5db8cf25566f19d2a5dc53204d4af22b23a0d. Other repository content, dependency implementations and external documentation are outside this scope. No code was executed. Installation, compilation, assistant behavior, distributed messaging, recovery and performance remain unassessed.
The overview
Identity
The resource is the skills/akka-best-practices folder in Aaronontheweb/dotnet-skills, containing SKILL.md and three companion Markdown files. Its metadata name is akka-net-best-practices. The original location is [https://github.com/Aaronontheweb/dotnet-skills/tree/master/skills/akka-best-practices].
It supplies instructions and examples for an assistant to consult while helping with Akka.NET development. The folder contains guidance rather than a packaged runtime library.
Assessment
Its strongest use is as a focused design and code review aid. It connects recurring decisions: whether messages must cross processes, which actor supervises a failure, and whether an expected error should become a result message instead of a restart.
The implementation material warrants more caution than the short conceptual explanations. Comments and code disagree in the local messaging example, and several lifecycle and recovery details are missing. No execution results establish that the snippets compile or work together.
Users
The intended audience is developers working with actors: components that receive messages and manage their own state. Relevant tasks include background processing, clustered applications, notifications and local testing of distributed application logic.
Beginners can use the decision trees to understand common choices, but adapting the examples requires C#, asynchronous programming and Akka.NET knowledge. Experienced developers may find the local-versus-cluster boundaries and lifecycle questions useful during review.
Capabilities
The main file explains EventStream versus DistributedPubSub, supervision of child actors, expected versus unexpected failures, constructor-based Props versus dependency resolution, and actor logging.
The companion files add database-backed job claiming, stream throttling, an email outbox, interchangeable local and clustered infrastructure, and CancellationTokenSource patterns for actor shutdown and operation timeouts. These are patterns to adapt; the evidence does not establish automated enforcement or improved assistant output.
Using it
Requirements
Assistant use requires a host that can load this SKILL.md format and access its relative reference files. Supported hosts, model requirements and context consumption are unspecified. The metadata sets user-invocable to false; the host-specific loading behavior is undocumented.
Applying the code requires the relevant Akka.NET APIs and application-specific actors, messages and services. Some patterns additionally require hosting, dependency injection, clustering, streams or a database supporting the illustrated SQL. Minimum .NET versions and a complete package compatibility matrix are unknown.
Mechanism
The skill combines rules, decision trees, C# examples and links to deeper patterns. The cluster/local design selects implementations through AkkaExecutionMode, routes entity messages through IMessageExtractor and exposes messaging through IPubSubMediator.
The local mediator actually stores subscribers in a dictionary and sends messages directly, despite a comment saying it uses EventStream. The cancellation pattern launches work with PipeTo, cancels its token when the actor stops or work is replaced, and links additional tokens for operation timeouts.
Setup
Keep SKILL.md together with async-cancellation-patterns.md, cluster-local-abstractions.md and work-distribution-patterns.md so its relative references remain usable. Load the folder through the chosen assistant host's supported mechanism; these files provide no host-specific installation procedure.
For application integration, supply the missing domain types, repositories and services. The local/cluster example requires execution-mode selection and dependency registration. The snippets do not establish a complete, compilable starter application.
Example
For an RSS polling service, the resource shows a worker claiming ten database jobs, processing them sequentially, recording outcomes and scheduling another batch after five seconds. The SQL claims pending rows using FOR UPDATE SKIP LOCKED and marks them as processing.
A separate Akka.Streams example configures Throttle with ten elements per second and SelectAsync with four concurrent operations. These are illustrative settings, not measured throughput or a demonstrated cluster-wide rate limit.
Assessment & evidence
Limitations
LocalPubSubMediator.Send selects FirstOrDefault from a HashSet without rotating recipients, although its comment calls this round-robin. GenericChildPerEntityParent watches children but shows no termination handler that removes stopped children from its dictionary. These details limit confidence in the claimed local/cluster interchangeability.
The queue example passes a staleAfter value, but its SQL only claims pending rows and shows no recovery of abandoned processing rows. The outbox example leaves repository transaction enlistment, duplicate handling and retry behavior unspecified.
Version-sensitive statements also need checking. The main file states a default supervision restart limit and logging support from Akka.NET 1.5.57, but the folder supplies no dependency manifest or compatibility results. Claims of millisecond tests and identical message flow are unsupported by measurements.
Reasoning
The resource is most useful when a developer needs help framing an Akka.NET decision and can review the resulting implementation. Its explanations connect design choices to concrete failure modes, including messages staying inside one process and asynchronous work outliving its actor.
The code discrepancies support treating its examples as reviewable starting points. Local execution can help examine application logic, but the supplied abstractions do not establish distributed delivery, restart recovery or operational reliability.
Alternatives
The Markdown can also be read directly as a human checklist. Within the guidance, plain Props suits constructor-supplied dependencies, while DependencyResolver addresses dependencies already registered with the service container.
The work-distribution options address different concerns: database claiming distributes jobs, stream throttling limits processing within a node, and an outbox records work alongside a business operation. Actual clustered integration tests are needed to examine cluster-specific behavior. Comparisons with other skills or starter projects are not supplied.
Evidence
The source consists of the four Markdown files and the repository-level LICENSE at commit 5ca5db8cf25566f19d2a5dc53204d4af22b23a0d. The revision-specific entry file is [https://raw.githubusercontent.com/Aaronontheweb/dotnet-skills/5ca5db8cf25566f19d2a5dc53204d4af22b23a0d/skills/akka-best-practices/SKILL.md].
The concrete findings about subscriber selection, child tracking and queue recovery follow from the displayed implementations and omissions. No compilation results, runtime traces, multi-node results, benchmarks or assistant evaluations accompany these files.
Access & freshness
Costs
The MIT notice grants permission free of charge, but the supplied files do not establish total usage costs. Assistant or model fees, infrastructure expenses and integration effort are unknown.
There are no measured token costs, operating costs or savings. Database queues, streams and clustered actors have different resource needs, but this material provides no financial comparison.
Rights
The repository-level MIT License names Aaron Stannard as the 2025 copyright holder. It permits use, copying, modification, publication, distribution, sublicensing and sale, subject to including the copyright and permission notices in copies or substantial portions.
The software and associated documentation carry no warranty. The notice supports redistribution of these captured files with the required notices; it does not establish licensing terms for separate dependencies.
Freshness
The source snapshot was captured on 2026-11-16 at 04:30:15.532 UTC and identifies commit 5ca5db8cf25566f19d2a5dc53204d4af22b23a0d. That fixes the text discussed here; it does not establish when each file was last changed or whether newer upstream changes exist.
The reference to Akka.NET 1.5.57 is a logging compatibility claim in the text, not a complete supported-version range. Compatibility with a particular application's dependencies remains unknown.
Actions
Start with the messaging, supervision and error-handling decisions relevant to the application. Confirm package-specific defaults and APIs before adopting the examples, and preserve the companion files and MIT notice when copying the resource.
Before relying on the implementations, correct or explicitly define local recipient selection, handle child termination, establish queue crash recovery and verify outbox transaction and duplicate-handling behavior. Check cancellation during shutdown, replacement and timeout separately, then examine cluster-specific behavior with actual clustered tests. These checks have not been performed.
