Discussion about this post

User's avatar
Michael Mellor's avatar

What happens to data lost during the 30 minute recovery window for a shard if transactions have happened and money has been exchanged but theres no longer a record or order id in the dB?

Expand full comment
dg's avatar

You are saying that while copying Shop A from one shard to another, they are write-locking the records that are part of the current batch that's being copied over while also keeping a binlog to capture recent updates on these records like a CDC (Change Data Capture) process.

If they are locking these transactions, then what happens during a sale surge for an item that has only 1 unit left? Are people locked out of the payment checkout process until the copy is complete? If the transactions are write-locked, then what's the point of having a binlog for this record if it's not gonna be able to capture recent changes? Having a binlog and write-locking seem to be mutually exclusive.

Can you clarify what happens to this final unit when multiple people are fighting over its purchase during a surge sale while the record(s) for this item is being copied over to another shard?

Expand full comment
6 more comments...

No posts