Serverless Node js?

Are there any services I can use to make a serverless node js rest api? Just want to store some jsons, verify tokens, very minimal processing. I did some tests on Azure and AWS. Azure seems way cheaper and easier. AWS was faster but API gateway is a fucking scam. Do you guys use any services like this or have projects in this vein?

Attached: awslayers.jpg (1080x600, 48K)

Other urls found in this thread:

devcenter.heroku.com/articles/getting-started-with-nodejs
twitter.com/SFWRedditVideos

>expecting Jow Forums to know anything about technology

They're all a fucking scams and there is no such thing as serverless.

explain, fool!

Attached: shootdog.jpg (433x265, 20K)

Imagine what happens when your code runs. Hmm, what could possibly be running it. Some kind of server perhaps...
It's a server that just charges by the second and is commissioned/decommissioned automatically. This can be cheap if you're testing but with significant load it becomes more expensive than a vps fast.

heroku is gud

Aws lamda?

>its a misnomer!
Its not cheaper to buy a vps, thats why its a big deal.

Haven't used heroku, but I heard their servers are funky. Can you actually host node on them?

Lamda is fine, its fast but its node implementation is weird and its not publicly exposed. You have to buy API gateway which is a fucking SCAM.

devcenter.heroku.com/articles/getting-started-with-nodejs

Currently using this for a project it works like git to push your setup to them and then it automatically sets everything up if your package.json is set up correctly.

If it’s minimal processing, try containers, there are a few free kubernetes paas, where you can run your application. If it gets big, you get more containers and a load balancer

Attached: 4L_t1lXzZY2.gif (500x720, 160K)

GCP and their free stuff could meet your needs. Worth looking at if you can be assed packaging everything up and trying it.

Heroku seems expensive. The cheapest db I could find was $10?

I've used containers a bunch and they are useful, but it doesn't really fit my use case, or at least doesn't provide any benefits over say Azure functions or lambda (load balancing, scaling, deployment, management, storage).

Haven't used much Google, its nice you can get a free vm, but their other services seem lacking. Storage is a huge deal and Azure has a super cheap table storage system with cheap reads.

Yeah sure, but my point was for simple things, it ought be completely free, and it will work.

They also have multiple free offerings. You can stitch a bunch of their free offerings together.

Im making a service, so it can't be free forever. Its gotta scale.

Heroku is decent for small projects

>tfw your package.json is setup correctly
>tfw nobody tells you about process.env.PORT

git pushing your project with heroku is god like. I wish everything used git like that
>Heroku seems expensive. The cheapest db I could find was $10?

Heroku has a free tier that doesn't cost anything. It powers off after around 30 minutes of inactivity, and it sounds like you just want something to serve. The first request after a while will take around 30 seconds, but after that it's smooth sailing. As for database, why not use AWS? They charge you as you go, so it'll be cheap and fast if your project doesn't get a lot of traffic

It is cheaper to buy a vps. At least if you're actually doing something. The rates for your function are dirt cheap, but you'll get roped into using other bullshit cloud features and if you're not careful you're suddenly over $5/mo, which can get you a decent vps if you shop around.

You'll never scale. Don't worry about it.

Yeah, but by the time you hit that, you can pick up your container and put it somewhere else.

Google are also significantly cheaper than AWS and cheaper then Azure.

If your plan is to scale in the future, then build to your future needs, not the part you can do for free for a short time.

>vps
vps doesn't scale
>you wont scale
ok, loser

Ive done a cost analysis of Azure and AWS.
Azure would be less then $1/month
AWS would be like $10/month of the equivalent
Google didn't seem to have the kind of services I needed. (server less node + cheap storage)

I haven't checked into the pricing of it yet. But for now it has been free for me.

I can't imagine being so socially retarded to the point where you'd miss the obvious context clue that "serverless" in this case means that they're not running their own server