Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure table is deprecated #174

Open
FBurner opened this issue Mar 1, 2021 · 1 comment
Open

Azure table is deprecated #174

FBurner opened this issue Mar 1, 2021 · 1 comment

Comments

@FBurner
Copy link

FBurner commented Mar 1, 2021

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
Copy link
Author

FBurner commented Mar 4, 2021

Are snapshots not stored automatically after commit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant