Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Created December 6, 2022 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdamBien/d60f7b91dc0e897915c083de35edef72 to your computer and use it in GitHub Desktop.
Save AdamBien/d60f7b91dc0e897915c083de35edef72 to your computer and use it in GitHub Desktop.
106thAirhacksQ&A.md
@senleft
Copy link

senleft commented Dec 7, 2022

Hi Adam,
I have the following use case.
Before calling other services from lambda, it needs to have an up-to-date token (in-house implementation of OAuth 2.0).
One option is the synchronous execution to acquire the token for each lambda invocation.
What other options can you recommend to exclude the synchronous call to the token provider?

Adam's proposed options:

  1. For lambda behind APIG/ALB - lambda authorizer
  2. Lambda extension
  3. Token refresher option - Dynamo DB as storage for token and EventBridge scheduler as a token refresher

@AdamBien
Copy link
Author

AdamBien commented Jan 2, 2023

2022 observations

@AdamBien
Copy link
Author

AdamBien commented Jan 2, 2023

Time travel - questions from 6th airhacks.tv: https://gist.github.com/AdamBien/8735518ee671d7edb778

@AdamBien
Copy link
Author

AdamBien commented Jan 2, 2023

"What is the purpose of that?" (The FunctionalInterface Annotation)
asked here: https://youtu.be/nr02y__b53c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment