I believe nextjs uses Serverless Functions, while express requires an always running server. Performance wise I think an always running server would win as it its always ready to handle requests, but if the Serverless function is on a good hosting platform that handles the function calls nicely without many cold starts then it wouldn't make much difference performance wise. A good question would be if nextjs Serverless Functions on Vercel are better than lambda functions on AWS. [edit]: u/CreativityExplorer rightly pointed out that Vercel uses aws lambda to deploy the Serverless Functions so its almost the same thing! Answer from abhinayx on reddit.com
🌐
Reddit
reddit.com › r/node › node.js vs. next.js
r/node on Reddit: Node.js vs. Next.js
December 29, 2020 -

I did some research and I stumbled upon this:

https://www.section.io/engineering-education/node-versus-next-react-approach/

Next.js is a react server side framework, which some advantages. But its main selling point is that it renders react server side.

What I do not understand is that: cant we already do this with node? i believe react allows a to string method to convert react to an HTML/js file?

https://reactjs.org/docs/react-dom-server.html

(and I know we can also use the rehydration method for combined server-client experience)

Also like, isnt next.js based off node ie just a node framework?

I guess I am trying to understand why i would want to learn next.js.

Thanks :)

🌐
Reddit
reddit.com › r/node › should i learn node js for backend, or next js?
r/node on Reddit: Should I learn Node js for backend, or Next js?
December 9, 2023 -

Good day everyone, been learning react and typescript for quite sometime now, and would want your opinions on what I should learn next.

My stacks are: React, typescript and tailwind (of course I'm very well grounded in css and sass already).

So far, all the apps I've built does not really have an authentication and I'll like to know how to setup authentication for apps.

Even though I heard that next js, is also good in that regard, as an FE who wants to eventually know how the backend and database works and how to create APIs general, should I learn Node js, and it's ecosystem (express, mongodb/postgre SQL, graphql etc), or should I learn next js?

🌐
Reddit
reddit.com › r/learnjavascript › next.js vs. node.js: comparison for modern web developers
r/learnjavascript on Reddit: Next.js vs. Node.js: Comparison for Modern Web Developers
September 6, 2024 -

The article explorres how both Next.js and Node.js are integral to modern web applications, while they serve different purposes -Next.js focuses on the frontend experience while Node.js underpins server-side operations - anhe combination of their capabilities allows developers to create robust and dynamic websites efficiently: Next.js and Node.js Compared for Modern Web Developers

🌐
Reddit
reddit.com › r/node › next.js and node.js is it ok to use both?
r/node on Reddit: Next.js and node.js is it ok to use both?
January 3, 2024 -

I'm building currently a website that I will port later into a Windows app through electron.js, I know react.js and node.js with express, I've tried nest.js but didn't like it and it confused me. So after some researching I found out about next.js and that It would be a great upgrade, I'm confused though because it seems you can create all the functions on next.js that I already have on node.js, like register user etc, but the app will have a lot of features ,like friends, Twitter like wall, chat, some external API calls to other databases and a lot more features that I cant disclose now, should I keep all the logic in the node.js and just change the frontend to next.js? Would the SSR still work? Do I need to keep my routes in node.js, as user.routes.ts or use the routes in the next.js?

🌐
Reddit
reddit.com › r/learnjavascript › react + nodejs or nextjs
r/learnjavascript on Reddit: React + nodejs or Nextjs
April 10, 2022 -

Hopefully i have found the right place to ask my question.

im a student developer(frontend) who needs som guidance on how i should be moving forward with my coding skills. I have been using react and nodejs for about 2 years but recently created a trello clone with nextjs and i really like the framework. My interest in coding is not limited to just the frontend, I have also made some simple backend apps(webScraper, rest apis). And my goal is to become somewhat of a decent fullstack developer in the future.

So should i stick to react as frontend and nodejs as backend? or should go over to nextjs?

Top answer
1 of 4
32
I would highly recommend you start by reading over the Next.js documentation , based on your question it sounds like you might be a bit confused as to exactly what Next.js is (which makes sense, you're still learning). There isn't really any "sticking to node" or "sticking to react" as an alternative to Next.js. Next IS Node and React. You can't use it without also working with both of those directly. Next is simply a very powerful wrapper around both of them that provides automatic handling of things like routing, static page generation, organization of API routes, image optimization, internationalization and much more. If you become an expect in Next.js and then it suddenly disappeared off the Earth tomorrow, you'd almost certainly still retain those expert level skills you had developed in Node/React from working with Next, you'd just need to handle a few more pieces of the development process manually. I highly recommend you use it, I think it's only going to continue to grow in the coming years given how nice it is to work with, how fast the output can feel, and how much $ it has behind it in terms of backing and support. I would echo also the other comment about keeping an eye on the tooling in the job descriptions in your area. A lot of demand for different stacks can be regional, however that said remote work in the software industry is quickly becoming a standard (especially for more senior devs), so it's not as critical as it used to be to just look in just your area. Good luck!
2 of 4
7
I don't understand the question... next.js is a framework for node.js. You can't use next.js without node.js.
🌐
Reddit
reddit.com › r/javascript › [askjs] what is the relationship between javascript, node.js,, next.js, and react.
r/javascript on Reddit: [AskJS] What is the relationship between Javascript, Node.js,, Next.js, and React.
June 4, 2024 -

Im trying to gain a deeper understanding of how JavasScript interacts with Node.js, Next.js, and React. What does Node.js, being a runtime for JavaScript, do on a lower level? What does Next.js do? How are they incorporated when using React?

Find elsewhere
🌐
Reddit
reddit.com › r/jsdev › next.js vs. node.js: comparison for modern web developers
r/JSdev on Reddit: Next.js vs. Node.js: Comparison for Modern Web Developers
April 30, 2024 -

The article explorres how both Next.js and Node.js are integral to modern web applications, while they serve different purposes -Next.js focuses on the frontend experience while Node.js underpins server-side operations - how combination of their capabilities allows developers to create robust and dynamic websites efficiently: Next.js and Node.js Compared for Modern Web Developers

🌐
Reddit
reddit.com › r/nextjs › does using next.js with a node.js api make sense?
r/nextjs on Reddit: Does using Next.js with a Node.js API make sense?
February 13, 2025 -

I’m using Next.js with TypeScript and Tailwind to build a boilerplate for future SaaS projects. I understand that Next.js can serve React components on the server, which is great for SEO purposes, but I’m curious how others typically handle the backend.

Do people generally use Next.js as a "client-side only" app, or is it more common to integrate everything—database connections and 3rd party APIs—directly into the Next.js server?

In my case, I’ve already developed a pure JavaScript Node.js API with the database fully set up. I’m wondering if I’m overcomplicating things by keeping a separate API layer. Would it be simpler and more secure to just move everything into the Next.js server?

My main questions are:

  1. Which approach is more secure: using Next.js with a separate Node.js API or integrating everything into the Next server?

  2. Does one approach make working with 3rd party services easier or harder?

  3. Are there challenges with integrating Next.js with Node.js? Especially since is TS to JS?

🌐
Reddit
reddit.com › r/node › newbie to node, should i focus more on express or nextjs
Newbie to Node, should I focus more on Express or NextJS : r/node
November 18, 2021 - I think you are talking about Nest js ? Because Nextjs is a React based front-end framework. ... They’re different things, for different purposes. Next simplifies some of what express does, but it’s not a 1:1 replacement for what node can do with express.
🌐
Reddit
reddit.com › r/nextjs › do i really need to know node.js before learning next.js?
r/nextjs on Reddit: Do I really need to know node.js before learning Next.js?
June 14, 2022 -

I want to learn Next.js, but before that, do I really need to know Node.js? If so, how much do I really need to know before I can start learning Next.js? I do know React pretty well, so I will assume learning Next.js with React should be no problem for me.

Any advice/insight is much appreciated!

🌐
Reddit
reddit.com › r/nextjs › node (with express) vs next.js - couldnt find a straightforward answer
r/nextjs on Reddit: Node (with Express) vs Next.js - couldnt find a straightforward answer
June 26, 2023 -

Hey there, Im a junior frontend dev (vanilla js, react) with some Node/express experience (built some smaller full stack apps - weather app, car rental, etc). Currently, Im working as a FE dev and Id love to keep on learning Node/Express along with some FE frameworks/libraries in order to build some passion projects (full stack ones).

Recently I came across Next.js and my question is - can I build a full stack app utilizing both next.js and node/express? Is it something that is considered as a common practice? I mean, I get the idea behind Next.js, it provides a "serverless" option to build a fullstack app using Nexts API, etc. but Id still love to work with Node/express. On the other hand, I appreciate Nexts features such as SSR, SEO optimalization, etc but Im a bit confused. Can I use Next along with Node/express to create my custom server that will server my own, custom API and at the same time utilize SSR or SSG via Next? Or I gotta decide between a fullstack app comprising of solely Next.js (+ a db of course) and a full stack app utilizing React & node/express?

Appreciate all the answers! Thank u guys.

🌐
Reddit
reddit.com › r/reactjs › is it worth jumping into learning node.js or straight into next.js
Is it worth jumping into learning node.js or straight into next.js : r/reactjs
April 1, 2023 - To understand server you need to understand Node ( or other back end tech) and Not just runtime but even writing JS. Server side Javascript /Typescript is very different than client side ( FE) .Next is using Node as well, and in my opinion why to restrict yourself to React Ecosystem ?
🌐
Reddit
reddit.com › r/node › what is the difference between express.js, next.js, next.js and nx?
r/node on Reddit: What is the difference between Express.js, Next.js, Next.js and NX?
December 27, 2022 -

I am new to Node.js and I am confused. They all seem to do the same thing.

I have a good understanding of core Node.js, Express.js, npm, package.json/package.lock and node_modules. But nothing more than that.

Update: Next.js is written twice in question. I meant Nest.js

I am used to working with PHP and Java in the past. So if you can tell an equivalent of Next, Nest and NX to something similar in PHP or Java eco-system, it will also help me.

Top answer
1 of 2
7
I will try to explain it, given that you are already familiar with Laravel. So: Experess.js - a very lightweight version of Laravel. It doesn't give you the default template and a lot of functionality, although it does provide some basic features such as routing, middlewares, upgraded Node.js http server etc. It is usually used for rapid development of small applications. Nest.js - the equivalent of Laravel and Spring. A large, heavy, and full-featured framework. Nx - think of it as a "framework for frameworks". What if you want to build two Nest.js (the equivalent of Laravel) applications that depend on each other? You'll probably create them separately, but that means you'll have to run and manage them separately too. Or you can use Nx, and merge them together within the same project "folder". You can merge more than 2 applications, it's up to you. So now you can run and manage them via Nx, and actually do a lot more other things. Next.js - much harder to explain, I don't think there are equivalents in the PHP eco-system lol. It's a slightly smaller framework than Nest/Laravel, but it works very differently. Essentially, Next.js converts React code to HTML and includes JS in response, when Laravel converts Blade (I hope you are familiar with it) code to HTML and includes JS in response (if you inlcluded it in your Blade code). So the similarity lies in the process of converting one thing into another. I guess that's a rough explanation, perhaps someone will correct me.
2 of 2
3
Express.js is a lightweight framework for webapplications. Next.js is a framework for reactjs (frontend library) that provides additional features like SSR. I assume you also mean nest.js which is a very opinionated and full blown web application framework. I don't think this helps alot because you can gather those informations by visit the appropriate sites. However, have you ever tried setting up a simple webserver with nodejs? Yeah, now do the same with expressjs and you will get an idea of what kind of abstractions these frameworks provide.
🌐
Reddit
reddit.com › r/nextjs › benefits of next.js server over plain node.js?
Benefits of Next.js server over plain Node.js? : r/nextjs - Reddit
August 31, 2019 - The service itself is very scalable as it runs your next.js app serverlessly. ... Being able to easily use the same Typescript types on both the front end and the api routes is really nice ... I’m 16+ y architect. If you need programmatic out-of-the box seo - use next.
🌐
Reddit
reddit.com › r/reactjs › should learn node js before next js?
r/reactjs on Reddit: Should learn node js before next js?
August 24, 2022 -

Good day everyone, so I've been learning react for a while now while styling it using tailwind. I feel proficient in my react skills. Being someone who has never tried authenticating my apps with a third party services like firebase or supabase (I mainly just use a dummy object to recreate a login style user).

Should I start learning node js or should I consider learning next js? I understand that next js is a full stack react framework, as such I'll be requiring backend knowledge right?