# How to handle events about document created/updated

**URL:** <https://discuss.elastic.co/t/how-to-handle-events-about-document-created-updated/5991>\
**Category:** Elasticsearch\
**Created:** [November 28, 2011, 11:42am UTC](https://discuss.elastic.co/t/how-to-handle-events-about-document-created-updated/5991 "2011-11-28T11:42:32Z")\
**Posts on this page:** 2\
**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, 11:42am UTC](https://discuss.elastic.co/t/how-to-handle-events-about-document-created-updated/5991/1 "2011-11-28T11:42:32Z")

</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

---

<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/5991/2 "2017-07-06T03:47:20Z")

</div>


