Aller au contenu
Français

registerDynamoDbPlugins

Ce contenu n’est pas encore disponible dans votre langue.

registerDynamoDbPlugins(ext, options?): DynamoDbPluginHandles

Defined in: src/persistence/journals/DynamoDbPlugin.ts:46

One-shot registration of the DynamoDB journal + snapshot store against the running PersistenceExtension, returning a ready-to-use DurableState store handle. Mirrors registerPostgresPlugins / registerMongoPlugins.

After this call, activate the journal + snapshot store via: actor-ts.persistence.journal.plugin = "actor-ts.persistence.journal.dynamodb" actor-ts.persistence.snapshot-store.plugin = "actor-ts.persistence.snapshot-store.dynamodb" either via HOCON or a { config: { … } } override.

Pass operations to share one client across all three stores — one DynamoDBClient pools connections for every table, so sharing is the normal case. With a shared façade no store owns it, so none closes it: close it yourself when the system shuts down. Passing region / endpoint instead lets each store build its own client and close it on close().

PersistenceExtension

RegisterDynamoDbPluginsOptions = {}

DynamoDbPluginHandles