1
通過將所有信息存儲在Cassandra集羣中,可以構建Ticketmaster票券預訂系統嗎?完全依靠Cassandra構建的票證預訂系統
系統需要能夠
1. Display the correct number of tickets available at one time
2. Temporarily reserve a ticket while the customer is making the purchase
3. No two users can ever buy the same ticket.
爲了保持一致性所有讀取和寫入應在仲裁進行。我不知道如何執行步驟2或3?
你爲什麼?儘管這當然是可能的,但我不明白爲什麼你不會使用MySQL。這將會更加昂貴,您將不得不手動控制應用程序中的數據關係。 – user1641165