BotConfig.durability and the
reference implementation of the journal contract.
It gives retries, backoff, the dead-letter queue and idempotent sends within one
process, but everything it holds is lost when the process dies: use
FileDurability (single process) or a store-backed backend
(@botmesh/postgres-store, @botmesh/redis-store) to survive a crash.
Extends
Constructors
Constructor
Returns
MemoryDurability
Overrides
KvDurability.constructor
Properties
inbox
Inherited from
KvDurability.inbox
outbox
Inherited from
KvDurability.outbox
exclusive
true when only one process can use the backend at a time (memory, file). A restarted
process then knows every lease of its instanceId is its own dead incarnation’s.
Inherited from
KvDurability.exclusive
scopeName
undefined = the unscoped tables).
Inherited from
KvDurability.scopeName
kv
Inherited from
KvDurability.kv
Methods
scope()
name (tables inbox:<name> / outbox:<name>).
Parameters
Returns
KvDurability
Inherited from
KvDurability.scope
start()
bot.start() before anything is replayed.
Returns
Promise<void>
Inherited from
KvDurability.start
stop()
bot.stop() after the provider stopped.
Returns
Promise<void>
Inherited from
KvDurability.stop