# How to handle events about document created/updated

**URL:** <https://discuss.elastic.co/t/how-to-handle-events-about-document-created-updated/5993>\
**Category:** Elasticsearch\
**Created:** [November 28, 2011, 1:26pm UTC](https://discuss.elastic.co/t/how-to-handle-events-about-document-created-updated/5993 "2011-11-28T13:26:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vsiryi](https://avatars.discourse-cdn.com/v4/letter/v/7ab992/32.png) [@vsiryi](https://discuss.elastic.co/u/vsiryi)\
**Post date:** [November 28, 2011, 1:26pm UTC](https://discuss.elastic.co/t/how-to-handle-events-about-document-created-updated/5993/1 "2011-11-28T13:26:52Z")

</div>

I would like to use ES as primary data storage. I want to receive PUT request  
in ES, handle event using some listener and than store data asynchronously  
into other data storage (Postgres database for example). Is it possible to  
implement using existing extensions?

Previously, I read topics  
[http://elasticsearch-users.115913.n3.nabble.com/Using-ES-as-our-primary-and-only-datastore-td3100393.html](http://elasticsearch-users.115913.n3.nabble.com/Using-ES-as-our-primary-and-only-datastore-td3100393.html)  
and  
[http://groups.google.com/a/elasticsearch.com/group/users/browse\_thread/thread/f8ff072a7039292d/f90501e0861b4e99#f90501e0861b4e99](http://groups.google.com/a/elasticsearch.com/group/users/browse_thread/thread/f8ff072a7039292d/f90501e0861b4e99#f90501e0861b4e99)

I understand that it is impossible to use ES as single data-storage. By this  
I decided to use a different database to store data backup and some backdoor  
functionality.

Thanks!  
Best regards, Vitalii Siryi

--  
View this message in context: [http://elasticsearch-users.115913.n3.nabble.com/How-to-handle-events-about-document-created-updated-tp3542168p3542168.html](http://elasticsearch-users.115913.n3.nabble.com/How-to-handle-events-about-document-created-updated-tp3542168p3542168.html)  
Sent from the ElasticSearch Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [November 29, 2011, 7:55am UTC](https://discuss.elastic.co/t/how-to-handle-events-about-document-created-updated/5993/2 "2011-11-29T07:55:11Z")

</div>

Its not available in elasticsearch, and its quite a big feature, I  
personally don't have a clear view of how best to fully implement it yet.

On Mon, Nov 28, 2011 at 3:26 PM, vsiryi [vitalii.siryi@gmail.com](mailto:vitalii.siryi@gmail.com) wrote:

> I would like to use ES as primary data storage. I want to receive PUT  
> request  
> in ES, handle event using some listener and than store data asynchronously  
> into other data storage (Postgres database for example). Is it possible to  
> implement using existing extensions?
> 
> Previously, I read topics
> 
> [http://elasticsearch-users.115913.n3.nabble.com/Using-ES-as-our-primary-and-only-datastore-td3100393.html](http://elasticsearch-users.115913.n3.nabble.com/Using-ES-as-our-primary-and-only-datastore-td3100393.html)  
> and
> 
> [http://groups.google.com/a/elasticsearch.com/group/users/browse\_thread/thread/f8ff072a7039292d/f90501e0861b4e99#f90501e0861b4e99](http://groups.google.com/a/elasticsearch.com/group/users/browse_thread/thread/f8ff072a7039292d/f90501e0861b4e99#f90501e0861b4e99)
> 
> I understand that it is impossible to use ES as single data-storage. By  
> this  
> I decided to use a different database to store data backup and some  
> backdoor  
> functionality.
> 
> Thanks!  
> Best regards, Vitalii Siryi
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/How-to-handle-events-about-document-created-updated-tp3542168p3542168.html](http://elasticsearch-users.115913.n3.nabble.com/How-to-handle-events-about-document-created-updated-tp3542168p3542168.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:47am UTC](https://discuss.elastic.co/t/how-to-handle-events-about-document-created-updated/5993/3 "2017-07-06T03:47:08Z")

</div>


