Lifecycle & Config
Metadata
Metadata provides information about the currently running actor.
Actor ID
Get the unique instance ID of the actor:
TypeScript
Actor Name
Get the actor type name:
TypeScript
This is useful when you need to know which actor type is running, especially if you have generic utility functions that are shared between different actor implementations.
Actor Key
Get the actor key used to identify this actor instance:
TypeScript
The key is used to route requests to the correct actor instance and can include parameters passed when creating the actor.
Learn more about using keys for actor addressing and configuration in the keys documentation.
Region
Region can be accessed from the context object via c.region
.
TypeScript
c.region
is only supported on Rivet at the moment.