spring boot - Auditing Api Request - Stack Overflow

I have many rest api(s) implemented in different spring boot applications, called by customers. There i

I have many rest api(s) implemented in different spring boot applications, called by customers. There is common requirement to

  1. Audit each customer request with outcome (success, no data, validation failed, unauthorized etc)
  2. Ability to bill(or not bill) individual customers by sending daily aggregate counts and request types etc

Instead of implementing auditing (and billing out of it) in each Spring Boot App, thinking of developing a common generic "audit" service that can record in some storage (no sql) and do batch processing at end of day to generate billing data (and ignore non billable) for api calls during a day.

Tried designing common service to keep auditing and billing totally separate but so far they are getting mixed up per record. Is there a way to keep auditing and billing separate (avoiding billing info in audit record)?

Looking for ideas/suggestions?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744376491a4571210.html

相关推荐

  • spring boot - Auditing Api Request - Stack Overflow

    I have many rest api(s) implemented in different spring boot applications, called by customers. There i

    7天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信