flipkart-incubator / grpc-jexpress

Developer friendly container for writing gRPC services using grpc-java
Apache License 2.0
18 stars 17 forks source link

Data/event generator #8

Open pmohankumar opened 6 years ago

pmohankumar commented 6 years ago

Micro services generate auxiliary events (or audits) and data/insights as part of request-response. We could have a framework which enables developers to easily tag what data to generate, aggregate (multiple events for one request to server) and ingest into sinks for further processing/analytics/auditing etc in a sync or async fashion.

Though this will be always-on (as against on-demand tracing) and fully ingested into sinks (as against sampling in tracing), this won't cover "transactional audit" use cases.

rohitkochar commented 6 years ago

@pmohankumar We have implemented something similar for one of our projects. The basic idea was to add Annotation based audit to any api ,where few data points like request params are audited by default and developers can add more context to be audited from within the API implementation.

You can see the example for the same here Posting a link to internal github https://github.fkinternal.com/Flipkart/cbt-import/blob/c8b70904927d8d4f29b48776a334d5b1baffd69a/audit/src/test/java/fk/sp/cbt/CarRental.java

And the source code is here https://github.fkinternal.com/Flipkart/cbt-import/tree/master/audit