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...
  • НаукаНаука

Комментарии • 66

  • @overrevvv
    @overrevvv 6 месяцев назад

    Thank you for this really amazing and informative video.

  • @krvns
    @krvns 6 месяцев назад

    Thank you!

  • @corradopetrelli
    @corradopetrelli 6 месяцев назад +1

    Great video!

  • @i3looi2
    @i3looi2 7 дней назад

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

  • @mertdr
    @mertdr 6 месяцев назад +26

    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 месяцев назад +1

      Same about deprecation, couldn't find anything

    • @alfonsograziano
      @alfonsograziano  6 месяцев назад +4

      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 месяцев назад +22

      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 месяцев назад +1

      @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

    • @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
    @rahulagarwal968 6 месяцев назад +2

    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 месяцев назад +2

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

    • @mertdr
      @mertdr 6 месяцев назад +1

      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
    @samislam2746 10 дней назад

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

  • @FreaKzero
    @FreaKzero 4 месяца назад +1

    did you write an Readme Update on the ExpressJS repo ?

  • @UP209D
    @UP209D 6 месяцев назад

    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
    @SirXtC 5 месяцев назад +2

    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_key 2 месяца назад

    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-xb2ks 6 месяцев назад +5

    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 RUclipsr 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
    @jhonnidarshan3094 6 месяцев назад

    Hi how can I contact you

    • @alfonsograziano
      @alfonsograziano  6 месяцев назад

      Hey! You can send me a message on Linkedin 😃

  • @ikbo
    @ikbo 6 месяцев назад

    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_Kebaikan 5 месяцев назад +1

    Let's always do alot of good ❤️

  • @getolvid5468
    @getolvid5468 6 месяцев назад

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

  • @i-ush6349
    @i-ush6349 5 месяцев назад +18

    TL;DW : This is a clickbait video.

    • @alfonsograziano
      @alfonsograziano  5 месяцев назад +3

      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
    @MelroyvandenBerg 3 месяца назад

    I also moved my backend to fastify! 🎉

  • @thefonsotube
    @thefonsotube 5 месяцев назад

    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
    @Marvelous71 5 месяцев назад +1

    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-good 6 месяцев назад

    Good job bro keep working❤

  • @_Acrk629lak0sUg1s
    @_Acrk629lak0sUg1s 3 месяца назад

    The best backend framework that u need is nestjs.

  • @eliteengineer7340
    @eliteengineer7340 6 месяцев назад +1

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

  • @steveoc64
    @steveoc64 6 месяцев назад

    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 месяцев назад +1

      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 месяцев назад +3

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

    • @miauw8762
      @miauw8762 6 месяцев назад +2

      @@markmuthiiaccording to his big thump

    • @nulI_dev
      @nulI_dev 6 месяцев назад +1

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

  • @naranyala_dev
    @naranyala_dev 6 месяцев назад +1

    HONO, HONO, HONO

  • @justvideo6770
    @justvideo6770 6 месяцев назад +2

    Just lern laravel

    • @alfonsograziano
      @alfonsograziano  5 месяцев назад

      You're comparing Apples with Horses 😆

  • @disruptapps
    @disruptapps 5 месяцев назад

    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 месяцев назад +1

      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 месяцев назад +1

      @@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
    @viewpoint8976 3 месяца назад

    All node fans let's gather here

  • @TheTomislavb
    @TheTomislavb 6 месяцев назад

    Dude, give me a break...