DEV Community

Cover image for Encore.ts — 17x Faster cold starts than NestJS & Fastify

Encore.ts — 17x Faster cold starts than NestJS & Fastify

Marcus Kohlberg on September 04, 2024

A couple of months ago we released Encore.ts — an Open Source backend framework for TypeScript. Since there are already many frameworks out there,...
Collapse
 
zaidmaker profile image
DevMirza

Babe wake up! New framework just dropped 🔥

Collapse
 
messified profile image
Jesse Reese

Haha

Collapse
 
tsolan profile image
Eugene

As always, the hundredth js framework released in a week claims to be faster than rust…

Collapse
 
vicariousv profile image
AndrewBarrell1

I don't remember reading anywhere that it claimed to be faster than rust, only that it is built in rust.

Where did it claim that?

Collapse
 
tsolan profile image
Eugene

For ignorant, it was a metaphor

Thread Thread
 
williamukoh profile image
Big Will

Please stop with the metaphors. It was a misleading comment

Thread Thread
 
vicariousv profile image
AndrewBarrell1

It wasn't a metaphor for anything. Just a guy that didn't read an article but still had something negative to say.

Willfully ignorant and calling other people ignorant? I actually read the article

Thread Thread
 
tsolan profile image
Eugene • Edited

I come across tens of similar articles about “how good this new js framework, how it outperforms everything else” each day. Shit.

Collapse
 
kusuma_atessae_9b70947c profile image
Kusuma At Essa E

Bio

Collapse
 
leenattress profile image
Lee Nattress

Am I reading this correctly, that you are dealing with multiple endpoints in a single Lambda?

Don't do this. One per Lambda. This benchmark is pointless.

Collapse
 
mohamedlamineallal profile image
Mohamed Lamine Allal • Edited

Container serverless. Like cloud run does have cold starts. And this would be useful for them. Microservices applications ...

Having containers get started only when there is traffic save compute time and can be of better value for some type of applications.

And u would have cold starts.

Nice also to know the context of encore

encore.dev/docs/introduction

Microservices, cloud, distributed systems ...

Collapse
 
gersosval profile image
Gerson Flores

The approach of handling multiple endpoints with a single lambda is known as Lambda Proxy Integration, I don't see any problem with that approach.

Collapse
 
nevodavid profile image
Nevo David

I am just looking at Encore.
I thought it could be a nice NestJS alternative, but after going in, I realized it's more like Express.

I am unsure why you compare a robust IoC framework to express/fastify style.
Also, who runs NestJS on a lambda haha

Collapse
 
mohamedlamineallal profile image
Mohamed Lamine Allal • Edited

Cloud run ...
Container serverless.
Microservices ..

Collapse
 
ducthang310 profile image
Thang Vu

I do! What's wrong with running NestJS on Lambda? :)

Collapse
 
jk_245326cf414ce17a0d2357 profile image
JK

I feel like this is quite flawed. My typical start up time for my various nestjs apps are measured in milliseconds.

Collapse
 
programordie profile image
programORdie

Most hosting services don’t even support loading binaries/native modules…