Using Express.js in 2024 sucks! What’s the alternative?

Ғылым және технология

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...

Пікірлер: 66

  • @overrevvv
    @overrevvv6 ай бұрын

    Thank you for this really amazing and informative video.

  • @krvns
    @krvns6 ай бұрын

    Thank you!

  • @corradopetrelli
    @corradopetrelli6 ай бұрын

    Great video!

  • @alfonsograziano

    @alfonsograziano

    6 ай бұрын

    I'm happy you liked it 😃

  • @i3looi2
    @i3looi27 күн бұрын

    Thanks for the benchmarks and info. Guess I'm gonna keep using h3 layer in nuxt.

  • @mertdr
    @mertdr6 ай бұрын

    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.

  • @Voltra_

    @Voltra_

    6 ай бұрын

    Same about deprecation, couldn't find anything

  • @alfonsograziano

    @alfonsograziano

    6 ай бұрын

    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

  • @randomforest_dev

    @randomforest_dev

    6 ай бұрын

    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.

  • @alfonsograziano

    @alfonsograziano

    6 ай бұрын

    @randomforest_dev no worries. I see your point :D In the KZread 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

  • @Thorax232

    @Thorax232

    6 ай бұрын

    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.

  • @rahulagarwal968
    @rahulagarwal9686 ай бұрын

    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 ?

  • @alfonsograziano

    @alfonsograziano

    6 ай бұрын

    To be honest I don't have much experience in Go, but Node.js (using Fastify) is definitely a good choice!

  • @mertdr

    @mertdr

    6 ай бұрын

    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.

  • @steveoc64

    @steveoc64

    6 ай бұрын

    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

  • @Nuraddinhassan

    @Nuraddinhassan

    5 ай бұрын

    ​@@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.

  • @steveoc64

    @steveoc64

    5 ай бұрын

    @@Nuraddinhassan ecosystem is huge. Docker for example is written in go, as is kubernetes. Networking and concurrency libs are really good

  • @samislam2746
    @samislam274610 күн бұрын

    It's been 200 years. I was in cave. Is v5 still on beta?

  • @FreaKzero
    @FreaKzero4 ай бұрын

    did you write an Readme Update on the ExpressJS repo ?

  • @UP209D
    @UP209D6 ай бұрын

    man I wish that I have your interpreting level, good job mate

  • @alfonsograziano

    @alfonsograziano

    6 ай бұрын

    Thanks a lot! 😁 But trust me, 99% is due to the magic of the editing 🤣

  • @SirXtC
    @SirXtC5 ай бұрын

    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.

  • @mr_don_key
    @mr_don_key2 ай бұрын

    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

  • @JorgeMartinez-xb2ks
    @JorgeMartinez-xb2ks6 ай бұрын

    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.

  • @kodekorp2064

    @kodekorp2064

    4 ай бұрын

    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 KZreadr just recommended fastify based on all the evidence and context provided.

  • @JorgeMartinez-xb2ks

    @JorgeMartinez-xb2ks

    4 ай бұрын

    @@kodekorp2064 Elaborate what? Of course Bun is a runtime. Hono is the framework...

  • @jhonnidarshan3094
    @jhonnidarshan30946 ай бұрын

    Hi how can I contact you

  • @alfonsograziano

    @alfonsograziano

    6 ай бұрын

    Hey! You can send me a message on Linkedin 😃

  • @ikbo
    @ikbo6 ай бұрын

    no mention of hono?

  • @alfonsograziano

    @alfonsograziano

    6 ай бұрын

    The goal of this video is not to compare all the frameworks out there

  • @Mari_Selalu_Berbuat_Kebaikan
    @Mari_Selalu_Berbuat_Kebaikan5 ай бұрын

    Let's always do alot of good ❤️

  • @getolvid5468
    @getolvid54686 ай бұрын

    By NearForm ....13th December 2017 - ?!!!

  • @i-ush6349
    @i-ush63495 ай бұрын

    TL;DW : This is a clickbait video.

  • @alfonsograziano

    @alfonsograziano

    5 ай бұрын

    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? :)

  • @MelroyvandenBerg
    @MelroyvandenBerg3 ай бұрын

    I also moved my backend to fastify! 🎉

  • @thefonsotube
    @thefonsotube5 ай бұрын

    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.

  • @Marvelous71
    @Marvelous715 ай бұрын

    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

  • @play-good
    @play-good6 ай бұрын

    Good job bro keep working❤

  • @alfonsograziano

    @alfonsograziano

    6 ай бұрын

    Thanks! New videos will come soon!

  • @_Acrk629lak0sUg1s
    @_Acrk629lak0sUg1s3 ай бұрын

    The best backend framework that u need is nestjs.

  • @eliteengineer7340
    @eliteengineer73406 ай бұрын

    Dovresti lavorare più sulla pronuncia , eitherway though, very helpful

  • @katsuragi7892

    @katsuragi7892

    5 ай бұрын

    U don't even speak English, c'mon bruh

  • @eliteengineer7340

    @eliteengineer7340

    5 ай бұрын

    @@katsuragi7892 he is italian

  • @steveoc64
    @steveoc646 ай бұрын

    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.

  • @angad7384

    @angad7384

    6 ай бұрын

    What else should one learn then what would be the optimal choice?

  • @steveoc64

    @steveoc64

    6 ай бұрын

    @@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

  • @markmuthii

    @markmuthii

    6 ай бұрын

    "Broken" according to who, if I may ask?

  • @miauw8762

    @miauw8762

    6 ай бұрын

    @@markmuthiiaccording to his big thump

  • @nulI_dev

    @nulI_dev

    6 ай бұрын

    People have been saying this since the early 2000s after wordpress came out 🤣

  • @naranyala_dev
    @naranyala_dev6 ай бұрын

    HONO, HONO, HONO

  • @justvideo6770
    @justvideo67706 ай бұрын

    Just lern laravel

  • @alfonsograziano

    @alfonsograziano

    5 ай бұрын

    You're comparing Apples with Horses 😆

  • @disruptapps
    @disruptapps5 ай бұрын

    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!

  • @okie9025

    @okie9025

    5 ай бұрын

    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.

  • @disruptapps

    @disruptapps

    5 ай бұрын

    @@okie9025 More over-complicated gatekeeping high-handed mentality - exactly what is wrong with this industry. Best wishes

  • @_Acrk629lak0sUg1s

    @_Acrk629lak0sUg1s

    3 ай бұрын

    Bro ? Just use nestjs instead express and forget that php sht rn

  • @viewpoint8976
    @viewpoint89763 ай бұрын

    All node fans let's gather here

  • @TheTomislavb
    @TheTomislavb6 ай бұрын

    Dude, give me a break...

Келесі