adobe/aio-lib-state

extend strong consistency to the process level instead of instance level

Closed this issue · 4 comments

Currently strong consistency is only supported for operations executed within one state instance (i.e. result of stateLib.init()). This behavior is guaranteed by Cosmos DB session consistency model.

This can be easily extended to support strong consistency across instances within the same process by storing the cosmos session id into a static variable when initializing the first instance and reusing the same id for subsequent instances.

Calling this closed with the doc update.