# Is it possible to use Hibernate Envers asynchronously?

**URL:** <https://discourse.hibernate.org/t/is-it-possible-to-use-hibernate-envers-asynchronously/2205>\
**Category:** Hibernate ORM\
**Created:** [February 4, 2019, 9:45am UTC](https://discourse.hibernate.org/t/is-it-possible-to-use-hibernate-envers-asynchronously/2205 "2019-02-04T09:45:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sreejesh](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@sreejesh](https://discourse.hibernate.org/u/sreejesh)\
**Post date:** [February 4, 2019, 9:45am UTC](https://discourse.hibernate.org/t/is-it-possible-to-use-hibernate-envers-asynchronously/2205/1 "2019-02-04T09:45:22Z")

</div>

Is it possible to use Hibernate Envers asynchronously?

---

<div class="post-metadata">

**Author:** ![vlad](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/vlad/32/658_2.png) [@vlad](https://discourse.hibernate.org/u/vlad)\
**Post date:** [February 4, 2019, 2:54pm UTC](https://discourse.hibernate.org/t/is-it-possible-to-use-hibernate-envers-asynchronously/2205/2 "2019-02-04T14:54:11Z")

</div>

> Is it possible to use Hibernate Envers asynchronously?

Envers is designed to execute in the scope of the currently running transaction, hence it’s synchronous.

If you want an asynchronous audit logging mechanism, you are better off using [Debezium](https://vladmihalcea.com/how-to-extract-change-data-events-from-mysql-to-kafka-using-debezium/), and process the underlying transaction log.

---

<div class="post-metadata">

**Author:** ![Naros](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/naros/32/19_2.png) [@Naros](https://discourse.hibernate.org/u/Naros)\
**Post date:** [February 11, 2019, 8:34pm UTC](https://discourse.hibernate.org/t/is-it-possible-to-use-hibernate-envers-asynchronously/2205/4 "2019-02-11T20:34:38Z")

</div>

I don’t have much to share just yet but there are discussions internally about how we can use Debezium to do this in a way that would allow users to continue to use the `AuditReader` interface to query the audit data and being able to handle the change data capture (CDC) asynchronously for super high performance systems.

Hopefully I’ll have more I can share in the coming months but its on my radar.

---

<div class="post-metadata">

**Author:** ![john1jan](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/john1jan/32/918_2.png) [@john1jan](https://discourse.hibernate.org/u/john1jan)\
**Post date:** [January 13, 2020, 10:14am UTC](https://discourse.hibernate.org/t/is-it-possible-to-use-hibernate-envers-asynchronously/2205/5 "2020-01-13T10:14:15Z")

</div>

check this [https://medium.com/groww-engineering/moving-from-hibernate-envers-to-debezium-bae4856c0e1b](https://medium.com/groww-engineering/moving-from-hibernate-envers-to-debezium-bae4856c0e1b)
