DEV Community

Cover image for The 5 Must-Know Backend Frameworks in 2024

The 5 Must-Know Backend Frameworks in 2024

Sufian mustafa on March 06, 2024

Hey there fellow developers! 🌟 Today, let's dive into the buzzing world of Node.js and uncover the top 5 backend frameworks making waves in 2024. B...
Collapse
 
610470416 profile image
NotFound404

Koa is the worst web library ever.
Nest.js is a monster library introduced a lot useless concepts.
The only acceptable library is express, but express's code is coupled and hard to extend and evolve.

Collapse
 
rsaz profile image
Richard Zampieri • Edited

Excellent points @610470416 , couldn't agree more. As Principal Engineer I am constantly looking for solutions that offers mechanics that allows me to be productive but doesn't take my freedom on creating new things or being able to extend capabilities of the framework. Another important aspect for me is that the group of features available in the framework are the ones that are extremely necessary, nothing more, avoiding then unnecessary boilerplate or extravagant spaghettis code to get something simple done as you imply in your text.

I am working heavily using ExpressoTS Framework, and I and my team are enjoying very much.

Collapse
 
610470416 profile image
NotFound404

Thanks.

ExpressoTS is a good try of modern frameworks which introduced new features by using ts, but it is still somewhat mvc based which is in fact not proper for the web framework as you can sometimes feel it:)

You can take a look at aex, which totally has nothing to do with mvc and obeys the Web Straight line theory to separate web logic from business logic easily. With aex, you can make your code cleaner, better organized, more simplified regardless of the ways how http requests are handled.

MVC separations only exist in your business code when necessary instead of the web framework, aex.

Collapse
 
meirlamdan profile image
meirlamdan

There are popular new frameworks

Collapse
 
sufian profile image
Sufian mustafa

thnaks for mentioning them 🫡

Collapse
 
rsaz profile image
Richard Zampieri • Edited

Good article! :)

Few things to consider:

  • .NET Core its a strong contender however is not the "lingua franca" of the internet. Internet is widely dominated by the javascript / typescript nodejs ecosystem. It doesn't mean that .NET Core framework is not used, in fact it is used especially here in America.

  • Related to the frameworks above mentioned, the only ones actively maintained are Nestjs and Koa. Hapi and Adonis are in a plateau without changing or significant change

  • I would recommend exploring expresso-ts.com/. It's a new framework (2.5 years of development, 1 year made public), currently being used in Asia, and Oceania and is gaining some traction this year in North America, especially in Canada.

Collapse
 
sufian profile image
Sufian mustafa

@rsaz Thank you so much for your positive feedback! 🌟 I appreciate your insights and observations. I'll definitely take your recommendation to explore expresso-ts.com into consideration. It's exciting to learn about emerging frameworks gaining traction globally,

Collapse
 
jdgamble555 profile image
Jonathan Gamble

I just use SvelteKit.

Collapse
 
mrlinxed profile image
Mr. Linxed

Express.js is super nice to work with. On its own, it's already useful. There are some great middleware's out there and it's easy to build on top of.

One of my repo's

GitHub logo MrLinxed / zod-express-middleware

Express middleware to validate requests using zod schema's.

zod-express-middleware

Middleware for express that uses zod to make requests type-safe.

npm npm npm License

Installation

This package relies on zod, express and @types/express. These have been added as peer dependencies so they can be upgraded independently of this package.

zod-express-middleware can be installed using:

npm install zod-express-middleware

Usage

This package provides the validateRequest function, which can be used to validate the .body, .query and .params properties of an Express Request. Separate functions for each of these are also provided (validateRequestBody, validateRequestQuery and validateRequestParams).

Basic example:

import { validateRequest } from 'zod-express-middleware';
import { z } from 'zod';
// app is an express app
app.get("/", validateRequest({
    body: z.object({
      bodyKey: z.number(),
    }),
  }), (req, res) => {
    // req.body is now
Enter fullscreen mode Exit fullscreen mode
Collapse
 
sufian profile image
Sufian mustafa

Absolutely! Express.js is awesome to work with. Its simplicity and the availability of great middleware make it super handy

Collapse
 
tduyng profile image
Z

For Nodejs, I noticed that Fastify framework is not mentioned.

Collapse
 
nenadj profile image
Nenad

Please just remove hapi!!!

Collapse
 
610470416 profile image
NotFound404

Apparently you don't know the must know one:
aex

Collapse
 
mukhammadsobirov profile image
Mukhammad Sobirov

For an enterprise project, nest.js is a solid and safe choice. Especially with DDD approach.

Collapse
 
marlonmarcello profile image
Marlon Ugocioni Marcello

Forgot to mention Fastify. It's honestly the most performant and modern of the Node frameworks.

Collapse
 
elanatframework profile image
elanatframework

NODE.JS has an interesting competition with ASP.NET Core

ASP.NET Core back-end frameworks

Collapse
 
sufian profile image
Sufian mustafa

The competition between Node.js and ASP.NET Core is indeed fascinating. Both technologies bring unique strengths to the table, and the choice often depends on specific project requirements, team expertise, and performance considerations.
Node.js, with its non-blocking, event-driven architecture, is widely adopted for building scalable, real-time applications. On the other hand, ASP.NET Core, with its cross-platform capabilities, strong integration with Microsoft technologies, and robust framework features, offers a compelling option for various enterprise-level applications.

Collapse
 
appsdevpk profile image
AppsDevPk • Edited

have you tried hono framework?

Collapse
 
sufian profile image
Sufian mustafa

mr bean no

Collapse
 
b0shed profile image
Julius • Edited

Well shame that i can't see fastify here.. The one and only node.js framework with amazing contributors and zero stale issues.

Collapse
 
rmiah209 profile image
Raheem Miah

Nice!

Collapse
 
sufian profile image
Sufian mustafa

mr bean thanks