eventual-consistency

Eventual Consistency

泪湿孤枕 提交于 2019-11-28 05:25:59
I am in the early stages of design of an application that has to be highly available and scalable. I want to use an eventual consistency data model for this for a number of reasons. I know and understand why this is an unpopular architectural choice for many solutions, but it's important in my case. I am looking for real-world advice, best-practices and gotchas to look out for when dealing with distributed / document-style databases. And particularly areas around e-commerce (shopping cart style) apps that traditionally are easier to put together with a relational db. I understand using these

How to handle set based consistency validation in CQRS?

一曲冷凌霜 提交于 2019-11-27 07:15:51
I have a fairly simple domain model involving a list of Facility aggregate roots. Given that I'm using CQRS and an event-bus to handle events raised from the domain, how could you handle validation on sets? For example, say I have the following requirement: Facility 's must have a unique name. Since I'm using an eventually consistent database on the query side, the data in it is not guaranteed to be accurate at the time the event processesor processes the event. For example, a FacilityCreatedEvent is in the query database event processing queue waiting to be processed and written into the

What is maximum Amazon S3 replication time on file upload?

拜拜、爱过 提交于 2019-11-27 04:33:55
问题 Background We use Amazon S3 in our project as a storage for files uploaded by clients. For technical reasons, we upload a file to S3 with a temporary name , then process its contents and rename the file after it has been processed. Problem The 'rename' operation fails time after time with 404 (key not found) error, although the file being renamed had been uploaded successfully. Amazon docs mention this problem: Amazon S3 achieves high availability by replicating data across multiple servers

Eventual Consistency

僤鯓⒐⒋嵵緔 提交于 2019-11-27 00:56:06
问题 I am in the early stages of design of an application that has to be highly available and scalable. I want to use an eventual consistency data model for this for a number of reasons. I know and understand why this is an unpopular architectural choice for many solutions, but it's important in my case. I am looking for real-world advice, best-practices and gotchas to look out for when dealing with distributed / document-style databases. And particularly areas around e-commerce (shopping cart

How to handle set based consistency validation in CQRS?

梦想的初衷 提交于 2019-11-26 13:08:46
问题 I have a fairly simple domain model involving a list of Facility aggregate roots. Given that I\'m using CQRS and an event-bus to handle events raised from the domain, how could you handle validation on sets? For example, say I have the following requirement: Facility \'s must have a unique name. Since I\'m using an eventually consistent database on the query side, the data in it is not guaranteed to be accurate at the time the event processesor processes the event. For example, a