mulesoft-catalyst / metrics-toolkit

The metrics toolkit (formerly metrics accelerator/framework) is a Mule application intended to collect, aggregate and load platform metrics into different visualization systems; providing out of the box integrations and visualization options, including useful dashboards and charts.
The Unlicense
84 stars 104 forks source link

Token expiry issue 1hr after the process starts #111

Closed siddhu268 closed 3 years ago

siddhu268 commented 3 years ago

Our platform contains 2 business groups, 100+ APIs, 100+ exchange assets. It usually takes 20 mins to complete the entire process. At times, platform APIs performance goes down and it takes more time than usual to respond. To avoid timeouts, I have increased the timeouts, decreased the concurrency, added until-successful on HTTP requests. But due to the increased timeouts, the whole process execution spills beyond 1 hour.

Token fetched initially seems valid for 1 hour and any calls that happens beyond 1hr ends up with Unauthorized issue. Can this be handled? Please.

panizzag commented 3 years ago

Hi @siddhu268 ! Thanks for collaborating on opening this issue. Two things I think you can do to manage this scenario:

Best, GP

siddhu268 commented 3 years ago

Hi @panizzag,

Thanks for the suggestion. I had already raised for approvals for changes with the first approach. My intention in raising the issue was that if the second approach is implemented, it would be helpful for the global audience using this accelerator.

Thanks Again for putting this together -Siddardha Sarabu