I'm working on an online shop. Currently we are storing the cart's content
in a MySQL Database so we can very easy access the amount of a certain
product and determine the reserved quantity.
This is very important as the amount in the user's carts is reserved so
other users my not by them.
What do you think: Is it wise to implement such a system in elasticsearch?
I'm mostly worried about the time between the "add to cart" (inserting a
document) and being able to access the total value due to the flushing
delay.
ES is eventually consistent, so it may not make sense if you're latency
requirements are very strict.
If you can introduce a delay then it should work.
I'm working on an online shop. Currently we are storing the cart's content
in a MySQL Database so we can very easy access the amount of a certain
product and determine the reserved quantity.
This is very important as the amount in the user's carts is reserved so
other users my not by them.
What do you think: Is it wise to implement such a system in elasticsearch?
I'm mostly worried about the time between the "add to cart" (inserting a
document) and being able to access the total value due to the flushing
delay.
On Thu, May 22, 2014 at 3:54 PM, Matthias Feist matf.de@gmail.com wrote:
What do you think: Is it wise to implement such a system in elasticsearch?
I'm mostly worried about the time between the "add to cart" (inserting a
document) and being able to access the total value due to the flushing
delay.
For your information, this flushing delay only exists for search
operations. We call it a near realtime operation because of this delay that
you need to wait after having indexed a document and before being able to
search for it (1 second by default).
However Elasticsearch doesn't only have a search API, it also has a GET API
that is realtime[1] and basically allows you to use Elasticsearch as a
key-value store.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.