How to handle events about document created/updated

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

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.

Best regards, Vitalii Siryi