Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using lambda@edge #4

Open
MaxAst opened this issue Mar 22, 2022 · 1 comment
Open

using lambda@edge #4

MaxAst opened this issue Mar 22, 2022 · 1 comment

Comments

@MaxAst
Copy link

MaxAst commented Mar 22, 2022

Hi @florianwiech,

thanks for this great CDK example! Have you considered using lambda@edge instead of regular lambda functions to run Remix? Would be interesting to measure performance differences, especially with an example that queries a dynamodb table.

Would be happy to help with this

@fwiech
Copy link
Owner

fwiech commented Mar 22, 2022

Hi @MaxAst, thanks for the suggestion.

That would definitely be nice to see a comparison between those two!
The differences in latency and pricing would be really interesting.

Although we should also take into account the Restrictions on Lambda@Edge.
To name a few:

  • No VPC endpoint possible
  • Env variables not supported
  • No X-Ray

Those limitations might be showstoppers depending on the use case.

Maybe you are a member in the remix discord.
Searching for lambda@edge I found quite a few conversations and also some example repos about that topic.
My overall interpretation at the moment is, that it seems to be possible, although not officially supported yet:

Message from Michael Jackson, creator of remix:

I saw someone post one in here a while back, but no we don't have any official support yet for lambda@edge
See https://discord.com/channels/770287896669978684/777863791093612565/915688300424069190
I haven't forgotten about lambda@edge! we'll get to it!


If you want you can join the remix discord and have a look at all the experiences from others in regards to lambda@edge and we can see if there are enhancements possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants