Which is Better for Node.js Backends: Amplify or EC2?

0
4
Asked By TechieTurtle42 On

I'm trying to decide on the best way to host a Node.js backend using Express and Apollo GraphQL. I've previously used Amplify for a React app, and I found it pretty straightforward with commands like amplify init and amplify publish. I'm wondering: How can I set up a Node.js backend with Amplify? Are there any good alternatives? I've considered Lambda, using a Docker container in EC2 (but I'm not sure how to secure that), or even ECS. Also, is it possible to mount EBS to an Amplify backend?

2 Answers

Answered By CuriousCoder88 On

I've mostly used Amplify for front-end hosting, and I think it does a decent job for that. However, I've heard mixed reviews about using it for backends. Some folks don’t recommend it—not because it’s terrible, but they just feel like there are better options. What I do is run my backend on ECS or EKS for more complex needs, but that might be overkill for smaller projects. So it kind of depends on your specific requirements!

MiniMac74 -

That makes sense! For smaller apps, do you think Lambda could be a better fit?

Answered By DevDude92 On

If you're looking to deploy your backend efficiently, have you considered using something like Nitro to package your Node.js app for Lambda? It can simplify the process for serverless setups and reduce the hassle. It's definitely worth looking into if you want to go the Lambda route!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.