CAP

https://dzone.com/articles/better-explaining-cap-theorem

https://www.youtube.com/watch?v=Jw1iFr4v58M

Why Cap matters:

Let say, you the ceo of amazon and you want to have user nice experience while they are purchasing a product amazon webstie.
Let also consider that we have only single website for amazon, there is multiple site like amazon.com , .in , .us, .aus, .pak

Now all our inventory/products are displayed on single website and people browse product, add them to cart and also most of time make purchase.

But there so many people, how it keep count of how many of them are left or in-stock product. Could it might happened that I check it was last entry and I made a payment but that was sold to some-other?

Typical another example is railway or flight booking.

How to solve this kind of problem???

C - consistency
A - Availability ( opposite of latency)
P - Partition Tolerance



More info:

GOTO 2012 • Introduction to NoSQL • Martin Fowler

https://www.youtube.com/watch?v=qI_g07C_Q5I

Distributed Systems in One Lesson by Tim Berglund

https://www.youtube.com/watch?v=Y6Ev8GIlbxc
(doesn't seem interesting, but have not checked)

FOWA 2013. Sharding and Scaling Your Database. Neha Narula


https://www.youtube.com/watch?v=p3ytSdUQZzA




Comments

Popular Posts