🌐
Medium
medium.com › deno-the-complete-reference › nestjs-vs-go-performance-comparison-for-jwt-verify-and-mysql-query-510221e6dea8
NestJS vs Go: Performance comparison for JWT verify and MySQL query | Tech Tonic
June 29, 2023 - This article compares NestJS & Go for this use-case. This is an interesting comparison because NestJS (which runs in Node.js) is interpreted, while Go compiles to machine code. Also, verifying JWT is a CPU intensive operation. The compiled language should be faster than interpreted one?
Discussions

Is there a Nestjs equivalent for Go?
NestJS is a framework for building efficient, scalable Node.js web applications. It uses modern JavaScript, is built with TypeScript and combines elements of OOP (Object Oriented Progamming), FP (Functional Programming), and FRP (Functional Reactive · In terms of a comparison to NestJS, I ... More on forum.golangbridge.org
🌐 forum.golangbridge.org
0
0
March 7, 2021
Golang vs NestJs response resolution
Does it really matter if golang is 10 ms faster? The db and calling other services will be the biggest slow downs. Regardless of language. Unless you have a specific provable usecase where golang is the superior choice due to performance, Id just pick whatever you like most. For me, that would be golang. More on reddit.com
🌐 r/golang
14
0
November 25, 2024
Is there any reason to switch to golang? Node.js vs Golang for back-end development.
Golang pros: In Node.js it is difficult to utilize full CPU cores. You will have to use cluster module (which basically is different processes communicating with each other via IPC using shared port) or use worker_threads but then they serialize messages and cannot share objects like true threads so threading in Node is awkward this way. So if you have business logic in your code which is synchronous and have too many requests then the latency of Node servers will be higher than go equivalent due to lack of concurrency and even with concurrency an equivalent go code is faster than Node as its compiled to binary. Go being statically typed means you dont have to add type validations in run time as all your go interfaces will validate data from IO calls automatically whereas in Node you will need validation libraries to validate incoming requests data (like Yup, express-validator, class validators, AJV etc) and basically everywhere you would want a strong type check in Node. In Go you get all this builtin. Go has much stronger primitives especially numbers compared to Javascript. MEMORY LEAK. Nearly all projects I worked in last 8 years in Node in different companies had memory leaks especially when websocket was involved. And i have spent countless hours profiling those Node servers by taking heap snapshots and inspecting memory usage. Sometimes it was due to library itself (ex. Socket.io inflate/deflate incoming JSON) and other times were due to developers code because of how closure in JS works and how V8 garbage collector works with mark sweep etc. I am saying in NodeJS its very easy to write a code which can leak memory and a lot of third party libraries (even established ones like socket.io) can cause leak especially when sockets are involved and those are VERY difficult to debug. Node servers consume more memory compared to equivalent Go code. Extensive standard library compared to Node.js Node pros: Has TON of 3rd party libraries to get work done compared to Go. No meta framework in Go like laravel in php or Nest.js (or Adonis.js) in Node.js world. And somehow Go community is to hostile to those ideas. It means you will end up using standard library to solve same problems which Nest.js/laravel have already solved and your solution might not be robust. It becomes prevalent if you, in your Go code, add authentication, authorization, graphql, websocket middlewares etc. Go gets messy without any meta framework or lack of good 3rd party libraries compared Node.js as the same things are easy to solve/already solved in NodeJs Extending previous point, it also means it is harder to bootstrap and build web app compared to Go as its so faster to build products with Node. Typescript as a language is MUCH fun to work and syntax of TS/JS is significantly better than Golang. Google has a history of solving problems in awkward way and always reinventing wheel just to look cool. Ex. Weird for loops, EXTREMELY weird OOP, export functions with capital letter (bad code styling by starting functions with capital letters instead of marking them with export and easier to search what is exported), receiver function (seriously to solve a problem they created another), has pointers which most other high level languages dont have and devs like not having to deal with pointers, painful string interpolation, painful to add JSON functionality, lack of generics, function can return more than 1 value, PAINFUL error handling and lack of DRY code because of it etc. Overall Go is just NOT the fun language syntactically which is a shame. 5. Faster to bootstrap ideas and overall MUCH more fun to work with by a long shot compared to Golang and overall in general. 6. Has npm modules fir just about anything though quality can be debatable. So, verdict? Overall its a tuff call. The main attraction of golang is single binary executable, easy concurrency, high speed and big standard library but its a shame that the lack of meta frameworks/small ecosystem and especially weird/poor syntax really ruin it for me significantly. Whereas Node and TS/JS is so much fun to work with with a HUGE npm ecosystem using which developers can build products significantly faster but lack of good concurrency support means hitting limits on Node server with demanding features is easy and very hard to solve given JS is not built for concurrency and servers benefit from it. The only way out would be horizontally/vertical scaling and shelling out more $ compared to Golang. More on reddit.com
🌐 r/node
58
53
January 15, 2022
Clone for NestJS in Golang, Is it a good idea or the community won't use it ?
I don't like NestJs. It is already a very odd fit in the JS ecosystem as it borrows a lot of the mannerisms and ceremonies of Java and .Net framework that tend to produce lasagna code. In the Go ecosystem it does feel out of place too. More on reddit.com
🌐 r/golang
39
1
October 31, 2024
🌐
Medium
medium.com › deno-the-complete-reference › nestjs-cluster-vs-go-performance-comparison-for-jwt-verify-and-mysql-query-83438f42c486
NestJS Cluster vs Go: Performance comparison for JWT verify and MySQL query | Tech Tonic
September 4, 2023 - In addition to NestJS, we utilized: - nest-jwt for JWT verification and decoding, which serves as a convenient wrapper over the standard jsonwebtoken library. - mysql2 for executing MySQL queries, ensuring efficient database operations. ... - golang-jwt for JWT verification and decoding, enhancing the security of our application. - go-sql-driver for performing ...
🌐
DEV Community
dev.to › rocklinda › benchmarking-csv-file-processing-golang-vs-nestjs-vs-php-vs-python-332e
Benchmarking CSV File Processing: Golang vs NestJS vs PHP vs Python - DEV Community
August 13, 2024 - Execution Time: Golang performed the best in terms of execution time, followed closely by PHP8, while NestJS took the longest time to complete the task. Memory Usage: Build NestJS demonstrated efficient memory usage, while Python showed higher ...
🌐
Scalable Backend
blog.scalablebackend.com › performance-testing-a-real-world-back-end-nodejs-vs-go
Performance Testing a Real-World Back-End: NodeJS vs Go
June 5, 2025 - If I made some configuration mistake or introduced bad practices, it might be on the Gin application, not NestJS. If there is one thing to remember for this exercise, it's that Go performs two to three times better with a handicap, compared to NodeJS.
🌐
Medium
medium.com › deno-the-complete-reference › nestjs-vs-go-static-file-server-performance-comparison-a60bc390e530
NestJS vs Go: Static file server performance comparison | Tech Tonic
July 4, 2023 - I’m this article, I’m going to compare NestJS’s static file server on the Node side with Gin’s static file server on the Go side.
🌐
Bytegoblin
bytegoblin.io › blog › nestjs-vs-go-performance-comparison-for-jwt-verify-and-mysql-query
Nestjs Vs Go Performance Comparison For Jwt Verify And Mysql Query
However, for the sake of this comparison, let’s consider hypothetical benchmark results, as actual results would depend on the specific implementation details and environments used for testing. ... From our hypothetical benchmark, Go appears to outshine NestJS in all three performance metrics.
🌐
DEV Community
dev.to › alpha018 › nestjs-vs-go-performance-benchmark-do-you-really-need-to-migrate-26eb
🔬 NestJS vs Go: Performance Benchmark (Do you really need to migrate?) - DEV Community
March 10, 2026 - Conclusion: For standard CRUD operations, NestJS is incredibly efficient, and the performance difference rarely justifies losing TypeScript's productivity.
Find elsewhere
🌐
StackShare
stackshare.io › stackups › gin-gonic-vs-nestjs
Gin Gonic vs NestJS | What are the differences? | StackShare
It features a Martini-like API with much better performance. It is up to 40 times faster. NestJS - Nest is a framework for building efficient, scalable Node.js server-side applications.
🌐
DEV Community
dev.to › hamzakhan › go-vs-nodejs-which-backend-powerhouse-will-dominate-in-2024-oe2
💡 Go vs Node.js: Which Backend Powerhouse Will Dominate in 2024? ⚡ - DEV Community
September 21, 2024 - Both languages have their strengths, and the decision should align with your project’s performance, scalability, and developer experience needs. ... Happy coding! ... Passionate software engineer specializing in web development, and CRM Development. Constantly learning and exploring new technologies to stay ahead. Let's code together! 🚀 ... NestJS vs.
🌐
Joshuapare
joshuapare.com › posts › rewriting-nestjs-app-to-go
Unlocking Massive Performance Gains by Rewriting a NestJS Application in Go · Joshua Pare
April 27, 2023 - For this reason, I’ve written a lot of backend applications in NestJS. And today, we’re going to talk about one of these applications and how moving away from my favorite Javascript framework to Go unlocked massive performance gains that I couldn’t have ever expected.
🌐
Themobilereality
themobilereality.com › blog › go-vs-node-js
GO vs Node JS : A Complete Comparison for CTOs
April 11, 2024 - On the other hand, Go, commonly called Golang, is a compiled single programming language meticulously crafted by Google. Designed to address the complexities of large-scale software web app development, Go blends high-level languages' simplicity and readability with the performance and low-level control typically related to popular programming languages.
🌐
Go Forum
forum.golangbridge.org › getting help
Is there a Nestjs equivalent for Go? - Getting Help - Go Forum
March 7, 2021 - NestJS is a framework for building efficient, scalable Node.js web applications. It uses modern JavaScript, is built with TypeScript and combines elements of OOP (Object Oriented Progamming), FP (Functional Programming), and FRP (Functional Reactive · In terms of a comparison to NestJS, I ...
🌐
Bytegoblin
bytegoblin.io › blog › nestjs-cluster-vs-go-performance-comparison-for-jwt-verify-and-mysql-query
Nestjs Cluster Vs Go Performance Comparison For Jwt Verify And Mysql Query
For operations like verifying JSON Web Tokens (JWT) and querying a MySQL database, performance can greatly impact user experience and system scalability. Two popular back-end choices include the NestJS framework, often leveraged with Node.js clustering for scalability, and the Go programming language, renowned for its speed and efficiency.
🌐
Reddit
reddit.com › r/golang › golang vs nestjs response resolution
r/golang on Reddit: Golang vs NestJs response resolution
November 25, 2024 -

Will there be a notable difference for response resolution in milliseconds for Node Js vs Golang? How bad is it going to be if true? My business applications is small scale, but it communicates with multiple micro services before providing the final response to client. I am not able to decide if I should go with Nodejs or golang. I also prefer faster development cycles!

🌐
ProCoders
procoders.tech › home › software development › node js vs golang: continue the comparison challenge with procoders
Node.js vs Golang: Key Differences & Performance Comparison| ProCoders
March 5, 2026 - Performance-critical applications: ... Robust and scalable applications: Golang is used to build robust and scalable applications, especially in performance-critical environments....
🌐
Reddit
reddit.com › r/node › is there any reason to switch to golang? node.js vs golang for back-end development.
r/node on Reddit: Is there any reason to switch to golang? Node.js vs Golang for back-end development.
January 15, 2022 -

Just want to know the community opinion: from what I see the key benefit of using node.js for back-end is the same language as front-end part. If I would like to work on back-end side only, would it better to switch to golang, let’s say, to do back-end only things, and don’t care about any front-end related stuff. Have node.js developers already considered as the real “back-end” guys? Or just an JavaScript front-end switchers 😀

Top answer
1 of 5
59
Golang pros: In Node.js it is difficult to utilize full CPU cores. You will have to use cluster module (which basically is different processes communicating with each other via IPC using shared port) or use worker_threads but then they serialize messages and cannot share objects like true threads so threading in Node is awkward this way. So if you have business logic in your code which is synchronous and have too many requests then the latency of Node servers will be higher than go equivalent due to lack of concurrency and even with concurrency an equivalent go code is faster than Node as its compiled to binary. Go being statically typed means you dont have to add type validations in run time as all your go interfaces will validate data from IO calls automatically whereas in Node you will need validation libraries to validate incoming requests data (like Yup, express-validator, class validators, AJV etc) and basically everywhere you would want a strong type check in Node. In Go you get all this builtin. Go has much stronger primitives especially numbers compared to Javascript. MEMORY LEAK. Nearly all projects I worked in last 8 years in Node in different companies had memory leaks especially when websocket was involved. And i have spent countless hours profiling those Node servers by taking heap snapshots and inspecting memory usage. Sometimes it was due to library itself (ex. Socket.io inflate/deflate incoming JSON) and other times were due to developers code because of how closure in JS works and how V8 garbage collector works with mark sweep etc. I am saying in NodeJS its very easy to write a code which can leak memory and a lot of third party libraries (even established ones like socket.io) can cause leak especially when sockets are involved and those are VERY difficult to debug. Node servers consume more memory compared to equivalent Go code. Extensive standard library compared to Node.js Node pros: Has TON of 3rd party libraries to get work done compared to Go. No meta framework in Go like laravel in php or Nest.js (or Adonis.js) in Node.js world. And somehow Go community is to hostile to those ideas. It means you will end up using standard library to solve same problems which Nest.js/laravel have already solved and your solution might not be robust. It becomes prevalent if you, in your Go code, add authentication, authorization, graphql, websocket middlewares etc. Go gets messy without any meta framework or lack of good 3rd party libraries compared Node.js as the same things are easy to solve/already solved in NodeJs Extending previous point, it also means it is harder to bootstrap and build web app compared to Go as its so faster to build products with Node. Typescript as a language is MUCH fun to work and syntax of TS/JS is significantly better than Golang. Google has a history of solving problems in awkward way and always reinventing wheel just to look cool. Ex. Weird for loops, EXTREMELY weird OOP, export functions with capital letter (bad code styling by starting functions with capital letters instead of marking them with export and easier to search what is exported), receiver function (seriously to solve a problem they created another), has pointers which most other high level languages dont have and devs like not having to deal with pointers, painful string interpolation, painful to add JSON functionality, lack of generics, function can return more than 1 value, PAINFUL error handling and lack of DRY code because of it etc. Overall Go is just NOT the fun language syntactically which is a shame. 5. Faster to bootstrap ideas and overall MUCH more fun to work with by a long shot compared to Golang and overall in general. 6. Has npm modules fir just about anything though quality can be debatable. So, verdict? Overall its a tuff call. The main attraction of golang is single binary executable, easy concurrency, high speed and big standard library but its a shame that the lack of meta frameworks/small ecosystem and especially weird/poor syntax really ruin it for me significantly. Whereas Node and TS/JS is so much fun to work with with a HUGE npm ecosystem using which developers can build products significantly faster but lack of good concurrency support means hitting limits on Node server with demanding features is easy and very hard to solve given JS is not built for concurrency and servers benefit from it. The only way out would be horizontally/vertical scaling and shelling out more $ compared to Golang.
2 of 5
20
Node has a completely different API than browser JavaScript. A front end dev isn’t automatically good at Node because they know JS.
🌐
Kinsta®
kinsta.com › home › resource center › blog › web development languages › node.js vs golang: which is best for your project?
Node.js vs Golang: Which Is Best for Your Project?
September 14, 2023 - Since Golang is statically typed, language developers are less prone to making variable errors. Go alerts you when you write a program without appropriate documentation · Significant performance gains due to being a compiled language (interpreted languages are a bit slower)
🌐
DECODE
decode.agency › article › golang-vs-node
Golang vs Node.js: key differences | DECODE
April 15, 2024 - Its minimalist syntax, built-in concurrency support, and strong focus on performance make it a popular choice among developers. Golang is a versatile programming language that can be used in a variety of contexts.
🌐
Stackademic
blog.stackademic.com › go-vs-nestjs-the-backend-decision-youll-thank-yourself-for-later-f18b6b7d6f73
Go vs NestJS: The Backend Decision You’ll Thank Yourself For Later | by BillaCode | Apr, 2026 | Stackademic
1 week ago - Slower prototyping. Go’s compiler, type system, and lack of reflection-based magic mean you’ll spend more time setting things up before you see results. The first week with Go often feels slower than the first week with NestJS.