Dependencies
Overview
A Dependency
is a pluggable and serialisable interface that can be injected into an Actor to extend its functionality with custom or domain-specific behaviour. It provides a flexible mechanism for augmenting actors with capabilities beyond the core runtime—for example:
Event sourcing support
Metrics collection
External service integrations
Custom configuration or logging
Dependencies are serialisable, allowing them to be safely persisted and restored at runtime. This enables seamless recovery and continuity during critical system events such as:
Actor redeployment or restart
Node failover
Cross-node actor migration
All dependencies must be registered with the actor system’s dependency registry. Registration ensures that the system can reconstruct and manage dependencies correctly across the actor’s lifecycle.
By using the Dependency
interface, you can build reusable, composable, and runtime-safe extensions for your actor system.
Get Started
Implement the
Dependency
interface:
Last updated