私はAWSの専門家ではないし、Next.jsの専門家でもないので、アドバイス や指摘はwelcomeです! • I knew that we can host Next.js apps with Lambda Web Adapter(LWA), so I tried • After trying it, I thought about what kind of use cases there might be • I am not an expert in AWS or Next.js, so any advice or suggestions are very welcome!
• Next.js以外にもExpressのようなサーバーもホストできる • SSR Streamingをサポートしている(詳細は省略) • 個人的には「Lambda Web Adapterについて自分なりに理解してみた」が分かりやす かった • An adapter for running HTTP-based applications on AWS Lambda easily • it is possible to host not only Next.js but also severs like Express • For me, 「Lambda Web Adapterについて自分なりに理解してみた」(Japanese Only) is easy to understand • It supports SSR-streaming (Omitted details)
Adapterでサーバレスに動かしてみた[AWS SAM]」を もとにハンズオン形式で試してみた • Lambdaを使ったことがあるとすんなり試せると思う • Tried this in a hands-on format based on “Next.jsをLambda Web Adapterで サーバレスに動かしてみた[AWS SAM]” (JP only) • If you have used Lambda, it should be easy
• タイムアウトは最長15分(関数URL) • コールドスタートによってTime to First Byte (TTFB)が長くなりそう • 250 MB quota limit on deployment package size • Maximum timeout is 15 minutes (function URL) • Cold start may increase Time to First Byte (TTFB)
want to manage your entire app on AWS alone ◦ If you are familiar with AWS, development efficiency is likely to increase ◦ Existing container apps deployed on other services can be deployed almost as-is • When you want to reduce the cost of (SSR) apps with low traffic • Can Vite-based SSR apps be run using the same procedure? • If you know other use cases, plz let me know! FYI; SSR: Server Side Rendering