--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I agree with you guys, but I've had this conversation with Afif before. His situation, iirc, is a bit different.
The goods are unique and can't be replaced. OOS is forever. It may be that they are digital and not capable of being damaged, etc making the database the warehouse. Think tickets to an event.
@afif
Why is optimistic concurrency so bad?
I was going to suggest something similar whereby you simply record the intent to buy, but before telling the user you check that their intent is within the stock count. This gives you the benefit that if someone else's order cancels for whatever reason, you can notify the other person that their order can proceed.
--
--
You received this message because you are subscribed to a topic in the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ravendb/PiM2p5wHTrQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ravendb+u...@googlegroups.com.
I certainly agree that eventual consistency is still a reality - payment failure, buyer's remorse, etc.
By warehouse, I meant that the db is authoritative.
I think there are twists in the domain such as this being b2b instead of b2c. For me, that makes a stronger case for ec, but I'd need to interview stakeholders to truly understand.
In the meantime, what's wrong with optimistic concurrency + retries again?
It all sounds like more worry than reality merits.
Can you go into a bit more detail?
Sorry, this is not entirely related to your question but in your last post are you saying that raven sometimes fails to adhere to optimistic concurrency?
Can you go into a bit more detail?
I think afif and I both outlined that.
To augment, if instead of deleting a cancelled order, you append an "order cancelled" event/doc, you can achieve append only. Now the state that needs to be tracked is: have we already told this customer their order can/will be fulfilled. The "wait list" is baked in, just left fold+zip the orders and stock.
--