node-eventstore icon indicating copy to clipboard operation
node-eventstore copied to clipboard

Azure table is deprecated

Open FBurner opened this issue 3 years ago • 1 comments

Hi there,

azuretables seem deprecated, is there a plan to support cosmos db instead?

Edit:

Cosmos DB - Tables API is not compatible with StoredEvent Attribute id,

var StoredEvent = function (event) { this.PartitionKey = eg.EntityProperty(event.aggregateId); this.RowKey = eg.EntityProperty(event.id); this.aggregateId = eg.EntityProperty(event.aggregateId); this.identifier = eg.EntityProperty(event.id);// Renamed it to be compatible with azure tables in cosmos db this.context = eg.EntityProperty(event.context); this.aggregate = eg.EntityProperty(event.aggregate); this.streamRevision = eg.EntityProperty(event.streamRevision); this.commitId = eg.EntityProperty(event.commitId); this.commitSequence = eg.EntityProperty(event.commitSequence); this.commitStamp = eg.EntityProperty(event.commitStamp); this.header = eg.EntityProperty(event.header); this.dispatched = eg.EntityProperty(event.dispatched || false); this.payload = eg.EntityProperty(JSON.stringify(event.payload)); };

FBurner avatar Mar 01 '21 22:03 FBurner

Are snapshots not stored automatically after commit?

FBurner avatar Mar 04 '21 00:03 FBurner