DEV Community

Discussion on: Build a RESTful API with the Serverless Framework

Collapse
 
magnusriga profile image
Magnus

Oh, and one other thing: Is it possible to use mongoose+MongoDB instead of mysql+MySql? Any downside there?

If you were to use GraphQL, would that be instead of mysql?

Collapse
 
striderhnd profile image
Erick Gonzales

Magnus I'm working right now in a project using the serverless framework, you can use mongoose+MongoDB (Cloud Atlas in my case) without any problems, what I like a lot about the serverless framework features is that you can handle a lot of cases in my case I'm working in a public API so you can configure custom authorizers and CORS management / rules. its very flexible framework.

Collapse
 
magnusriga profile image
Magnus

Great, thanks for sharing Erick. I look forward to trying it.

Collapse
 
sagar profile image
Sagar

For simplicity I choose MySQL but you can use any NOSQL database. There is single downside that for aws doesn't provide mongodb. If want to use mongodb then you have run ec2 instance for the same.

Collapse
 
skarlekar_81 profile image
Srini Karlekar

Check out mlab.com where you can run MongoDB in Serverless fashion. There is a free tier for running a single node MongoDB.

Thread Thread
 
sagar profile image
Sagar

Wow!! It's good. I know that AWS Aurora provides serverless SQL engine. If MongoDB, providing serverless then its too good. Thanks for information.

Thread Thread
 
striderhnd profile image
Erick Gonzales

Lambda + Cloud Atlas is a pretty good stack.

Thread Thread
 
sagar profile image
Sagar

Hey Erick, I have not tried Cloud Atlas before it will be good if you send an email any link or reference for the same.

Thread Thread
 
striderhnd profile image
Erick Gonzales

Hey Sagar, Sure I'll sent you an email.

Thread Thread
 
sagar profile image
Sagar

Erick, I haven't not received email. You can DM me.

Thread Thread
 
Sloan, the sloth mascot
Comment deleted
 
Sloan, the sloth mascot
Comment deleted
 
striderhnd profile image
Erick Gonzales

Hey you can delete this one now.