A HYBRID FRAMEWORK FOR CONTEXT-AWARE AUDITING IN EVENT-DRIVEN MICROSERVICE ARCHITECTURES
Annotatsiya
In distributed microservice architectures, maintaining a consistent and domain-aware audit trail is challenged by database isolation and the trade-offs between context capture and system performance. This paper proposes a hybrid auditing framework that integrates Hibernate event listeners with an Apache Kafka-based asynchronous transport layer. By capturing change events at the application layer, the system preserves critical domain context—such as user identity and localized field labels—while ensuring horizontal scalability and non-blocking performance. Empirical evaluations demonstrate that the framework handles 50,000 events per minute with sub-500ms latency, offering a production-ready solution for high-integrity enterprise environments. The framework was successfully validated through a real-world deployment in a utility billing system, where it processed over 125,000 change events with 100% correctness.