Using Express.js in 2024 sucks! What’s the alternative?
HTML-код
- Опубликовано: 17 дек 2023
- Follow me on Linkedin: www.alfonsograziano.it/linkedin
My website: www.alfonsograziano.it/
A special thanks to all the Software Engineers who helped me to create this video. I had a lot of great insights and useful links from the peer review. Thanks friends!
Resources mentioned in the video:
www.nearform.com/blog/reachin...
fastify.dev/benchmarks/
www.techempower.com/benchmark...
www.npmjs.com/package/path-to...
github.com/delvedor/find-my-way
github.com/nodejs/citgm
github.com/nodejs/citgm/blob/...
github.com/nodejs/citgm/pull/977
www.npmjs.com/package/express
github.com/expressjs/express/...
github.com/dougwilson
analyzemyrepo.com/analyze/exp...
thefullstack.xyz/history-expr...
github.com/fastify/fastify-ex...
fastify.dev/docs/latest/Guide... Наука
Thank you for this really amazing and informative video.
Thank you!
Great video!
I'm happy you liked it 😃
Thanks for the benchmarks and info. Guess I'm gonna keep using h3 layer in nuxt.
Hey man, thanks for insights. However, I couldn’t find any news related ExpressJS will be deprecated in 2024. Yes, we’re addicted to major changes and nonstop updates as JS developers (especially NextJS). But honestly, stability and slow development is not a bad thing at all especially for such simple concepts like Express JS. I’d appreciate if you could share where did you hear Express is going to be deprecated or development discountinued.
Same about deprecation, couldn't find anything
Hey folks! If you look at the video, you can see that the last commit in v5 beta 1 is from Sep 2022. This doesn't mean that the framework itself will be deprecated (the maintainer is really fast to reply on comments), but unfortunately the development is currently stuck 😃
Usually something is deprecated when a new version come out, so my bet would be that, if Express v5 will be ready in 2024, v4 (active from 10 years) will be replaced with 5
It is just for clickbait, and he succeeded (most viewed video so far on his channel). No offense, Alfonso. I am talking what I am seeing.
@randomforest_dev no worries. I see your point :D
In the RUclips game, if you want people to watch a content you have to do something catchy.
From the retention statistics I can clearly see that people are appreciating this video. I truly hope that the high number if views is due to an increase in the overall quality and not just a cool title/thumbnail
Typically when I see a video like this. A white dude in a hoodie doing "code news" I know most of what they're saying is bs. At their best they're regurgitating news from somewhere else like cable news pundits. At their worst, like here, they're making stuff up for the clicks. Either way, completely useless.
I am a flutter developer and have little knowledge of backend programming. So what would you suggest I learn for building rest apis for mobile applications. Golang or Node js or something else ?
To be honest I don't have much experience in Go, but Node.js (using Fastify) is definitely a good choice!
If you would be a React Native developer, nodejs could be a no-brainer. But since you’re already in Google’s ecosystem (Dart), Golang might be a better choice. In terms of performance, Golang is better than Nodejs as far as I know (using less resources, meaning lower cost). But if you’re also a JS dev, Nodejs is a great option too. It’s all about convenience in most cases.
Go is light years ahead of nodejs in almost every conceivable way.
Go is also significantly worse than lower level alternatives in every metric, except maybe DX
@@steveoc64
I move to Golang in couple month ago, it surprised me the simple of language,
for performance Golang is better
for multi request per second for sure it's Golang
for memory cast again Golang
my afraid was the ecosystem, but realize golang has powerful tools and packages.
@@Nuraddinhassan ecosystem is huge. Docker for example is written in go, as is kubernetes. Networking and concurrency libs are really good
It's been 200 years. I was in cave. Is v5 still on beta?
did you write an Readme Update on the ExpressJS repo ?
man I wish that I have your interpreting level, good job mate
Thanks a lot! 😁 But trust me, 99% is due to the magic of the editing 🤣
In essence, avoid using Express.js if you are inexperienced in coding. The issues highlighted in the video primarily affect those who lack a proper understanding of Node.js, especially regarding 'performance'. Typically, this concern is raised by individuals who are not well-versed in threading and the utilization of multiple cores and lack knowledge about indexing and data structures.
it's all relative.. for most sites, express is still plenty fast to respond to it's requesters. If you need that much connections, than well. maybe refactoring/optimizing code is a thing.. or perhaps check other infra things, like load balancing node processes, use background worker processes, or optimize the db and the queries etc
If you want to replace Express with an equivalent alternative, your best choice is probably Bun & Hono. If you want to escape from JS on the server, Go & Fiber is a great choice too. Go is known for its speed, efficiency, and performance under high loads, so at the end it will depend on your requirements. I like both JS & Go, but I'd probably choose Go despite the load, it's a more compact and better language than JS in some aspects.
Can you elaborate why?
There are already hundreds of people saying its better to use x and x. Also as far as I am concerned, Bun is a runtime and not a framework. Express is a framework that was built for NodeJS, which is a runtime.
Never heard of Hono, but you must have reasons for suggesting Hono over fastify after the RUclipsr just recommended fastify based on all the evidence and context provided.
@@kodekorp2064 Elaborate what? Of course Bun is a runtime. Hono is the framework...
Hi how can I contact you
Hey! You can send me a message on Linkedin 😃
no mention of hono?
The goal of this video is not to compare all the frameworks out there
Let's always do alot of good ❤️
By NearForm ....13th December 2017 - ?!!!
TL;DW : This is a clickbait video.
The video is called "Using Express sucks", and inside you find all the Express problems baked by data and also a valid alternative. What is the clickbait? :)
I also moved my backend to fastify! 🎉
Hmm express 4.18.2 was released 2 years ago. 5.0.0-beta.1 was also released 2 years ago Oct and Feb respectively. I'm not an express fan boy but just saying this detail needs adjusting in this video @5:30.
It take 2weeks to learn a new technology or framework so choose tech you feel better if one become better than another one developers will naturally moove on it no need videos to explain this this is just natural
Good job bro keep working❤
Thanks! New videos will come soon!
The best backend framework that u need is nestjs.
Dovresti lavorare più sulla pronuncia , eitherway though, very helpful
U don't even speak English, c'mon bruh
@@katsuragi7892 he is italian
Newsflash - it’s 2024 already, and ALL “web development tech” is deprecated.
The whole idea of “apps” running inside a web browser is a broken idea that is past its use by date.
There will still be a tonne of work in this area going forward, because it solves the distribution problem (for now), but if you are still investing yourself 100% in webdev, then you are living on borrowed time.
What else should one learn then what would be the optimal choice?
@@angad7384 up to you .. but there is a million programming tasks that need doing outside of webdev.
They all use the same basic principles
Write a firmware driver for a keyboard
Write a database engine from scratch
Write a mobile app
Write a program to analyse audio input using the gpu
Write a game lobby that uses udp packets and nfc to discover other devices on the network
A million things
"Broken" according to who, if I may ask?
@@markmuthiiaccording to his big thump
People have been saying this since the early 2000s after wordpress came out 🤣
HONO, HONO, HONO
Just lern laravel
You're comparing Apples with Horses 😆
The alternative? Go back to tried and true, simple Maria DB and write clean php code instead of using all these never-ending framework/library merry-go-round tech trends. That's the problem with this industry - framework/library of the month, one-upmanship 'Big Tech player wanna-be' lemming mentality - along with Agile!
You're talking as if writing PHP code is enjoyable. It's miserable, and it's the reason why we have shifted to JS and eventually to TS.
@@okie9025 More over-complicated gatekeeping high-handed mentality - exactly what is wrong with this industry.
Best wishes
Bro ? Just use nestjs instead express and forget that php sht rn
All node fans let's gather here
Dude, give me a break...