How does the Synchronize function of a shopping cart like Taobao come true?

shop on the PC, then add the goods to the shopping cart,
;
then the question is: how does this function work?
my negative answer:
(1) should not directly operate the database, after all, Taobao data is too large, direct operation of the database, it is estimated that the database will fail;
(2) put in the cache, what is the basis for the cache to update the database? Or not update the database? I"m not sure.
Mar.04,2021

how to say, you should be underestimate Ali . If this data operation database had all failed, Ali would have closed down long ago.

I don't know much about Ali's technology, but if you want to know about it, you can go to Ali's technical manual


"Ali Technology reference album" (R & D)

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1beb9b4-31212.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1beb9b4-31212.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?