I used action filter for all api actions in asp.net core. I want save the all of them. But api response is too long. I want use a stack in memory cach and add new data to stack and response request. Set interval task for bulk insert from stack to database (sql server).
I need example or library