Is it possible to use Hibernate Envers asynchronously?


#1

Is it possible to use Hibernate Envers asynchronously?


#2

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, and process the underlying transaction log.


#4

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.