1 Answer
- Newest
- Most votes
- Most comments
2
Trying to run an entire React web app on Lambda will make for complex code and will likely get out of hand quickly unless it's very basic. You'd also have to consider other aspects like cold starts and concurrency limits and how this affects performance.
A more common and much more easier way is to host your frontend files on S3, and your backend/server-side rendering components on Lambda. Check out this blog post for a detailed example.
answered 2 years ago
Relevant content
- asked 2 years ago
- asked 2 years ago
- asked a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 6 months ago
Can you elaborate a bit on what this react web app is? Is it rendered on the client side or does it need server side rendering? Can it be hosted in S3 instead of Lambda?