registerDynamoDbPlugins
Esta página aún no está disponible en tu idioma.
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().
Parameters
Section titled “Parameters”options?
Section titled “options?”RegisterDynamoDbPluginsOptions = {}
