I
I
III2013-01-30 23:00:26
ASP.NET
III, 2013-01-30 23:00:26

Cart functionality. Unregistered user. Storage of selected items?

Hello.
For fun, I'm writing my store on asp.net mvc. There is a standard shopping cart functionality, when before registration you can pick up goods, and before paying you will be asked to register. After reading this article msdn.microsoft.com/en-us/magazine/cc300437.aspx one gets the impression that cache is manna from heaven for this task. Is it so? And are there any pitfalls that are not immediately detected?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EugeneOZ, 2013-01-30
@ III

Well ... until you want to do analytics on abandoned carts and all that. You can, of course, pull data from the cache for analytics. But
1) most BI tools are based on SQL (ODBC);
2) the cache must be persistent in this case (Redis, Couchbase) and must be large enough to be ready to fit it all.
If such analytics is not needed, then, of course, the cache is good here because it is expiring itself. By the way, in Couchbase you can set the expiration time for those records that are stored on the disk.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question