Is it possible to use Elasticserach in a producer / consumer scenario?
The producer writes documents to Elasticserach.
The consumer reads documents from Eleasticserach and processes them.
The order of the documents must be preserved.
There is a REST API GET operation but the document's _id must be specified. But the consumer doesn't know the _id of the document, he wants to just get the next document that came.
I did not find an API allowing to subscribe for incoming documents.
Because Elasticsearch is also a database that would keep original versions of documents for later use. In contrast, queuing systems (such as RabbitMQ) are for communication only and do not have a database.
I guess that's a bad idea - but I wonder if it is technically possible to use Elasticserach instead of proper message queueing system.
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.