So I've got a site on S3 Cloudfront. I have an API gateway origin. I need to call an external API. The auth works by constructing a JWT, POSTing it to a token endpoint, and including that access token in requests to the API. I need a way to cache the access token.
1. Call API with Lambda proxy with the access token stored as a global variable outside the handler. Would be reused but like article mentions not guaranteed and can miss often.
2. Store access token client side (cookie). This would require one call per client even if the access token already generated.
3. Store access token externally (S3 or secrets manager?). Latency would increase, but could be combined with #1.
mentioning yoga ayurveda and "Islamic invasion" clearly gives you away as a Hindu nationalist.
including Islamic "invasion" makes no sense here. The first muslim armies entered the subcontinent in like 800, no comparison to Europeans. And India only gained status after its Muslim rule.