Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

NestJS
NestJS

311
396
+ 1
116
Spring Boot
Spring Boot

6.4K
5.6K
+ 1
585
Add tool

NestJS vs Spring Boot: What are the differences?

What is NestJS? A progressive Node.js framework for building efficient and scalable server-side applications by @kammysliwiec. Nest is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with TypeScript (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming) Under the hood, Nest makes use of Express, but also, provides compatibility with a wide range of other libraries, like e.g. Fastify, allowing for easy use of the myriad third-party plugins which are available..

What is Spring Boot? Create Spring-powered, production-grade applications and services with absolute minimum fuss. Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run". We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need very little Spring configuration.

NestJS and Spring Boot belong to "Frameworks (Full Stack)" category of the tech stack.

"Powerful but super friendly to work with" is the top reason why over 7 developers like NestJS, while over 78 developers mention "Powerful and handy" as the leading cause for choosing Spring Boot.

NestJS and Spring Boot are both open source tools. It seems that Spring Boot with 39.8K GitHub stars and 25.8K forks on GitHub has more adoption than NestJS with 17.4K GitHub stars and 1.22K GitHub forks.

MIT, Intuit, and PedidosYa are some of the popular companies that use Spring Boot, whereas NestJS is used by Sofit Software, Quero Education, and YABAWT. Spring Boot has a broader approval, being mentioned in 333 company stacks & 615 developers stacks; compared to NestJS, which is listed in 12 company stacks and 13 developer stacks.

What is NestJS?

Nest is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with TypeScript (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming). Under the hood, Nest makes use of Express, but also, provides compatibility with a wide range of other libraries, like e.g. Fastify, allowing for easy use of the myriad third-party plugins which are available.

What is Spring Boot?

Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run". We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need very little Spring configuration.
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose NestJS?
Why do developers choose Spring Boot?

Sign up to add, upvote and see more prosMake informed product decisions

Sign up to add, upvote and see more consMake informed product decisions

What companies use NestJS?
What companies use Spring Boot?

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with NestJS?
What tools integrate with Spring Boot?
    No integrations found

    Sign up to get full access to all the tool integrationsMake informed product decisions

    What are some alternatives to NestJS and Spring Boot?
    AdonisJS
    It is a Node.js Framework which is highly focused on developer ergonomics, stability and confidence.
    FeathersJS
    Feathers is a real-time, micro-service web framework for NodeJS that gives you control over your data via RESTful resources, sockets and flexible plug-ins.
    Koa
    Koa aims to be a smaller, more expressive, and more robust foundation for web applications and APIs. Through leveraging generators Koa allows you to ditch callbacks and greatly increase error-handling. Koa does not bundle any middleware.
    LoopBack
    A highly-extensible, open-source Node.js framework that enables you to create dynamic end-to-end REST APIs with little or no coding. Connect to multiple data sources, write business logic in Node.js, glue on top of your existing services and data, connect using JS, iOS & Android SDKs.
    hapi
    hapi is a simple to use configuration-centric framework with built-in support for input validation, caching, authentication, and other essential facilities for building web applications and services.
    See all alternatives
    Decisions about NestJS and Spring Boot
    Marwen Trabelsi
    Marwen Trabelsi
    Software Engineer | 3 upvotes 36.4K views
    Spring Boot
    Spring Boot

    I use Spring-Boot because it almost let you get things done quickly for a JVM-target project, with auto configuration components and dependency management starters. It is almost perfectly tailored for microservices applications development with a single unit deployment artifact (JAR) along with support for Service Registry and Discovery, Circuit Breaker pattern...

    Any third-party library or any back-end service would perfectly integrate well since Spring offers integration support for most of mainstream services, let it be a RDBMS service, a NoSQL database, a Message Broker...

    Coming to day-to-day development, Spring-Boot enjoys a great community so you can get support, direction, focused guidance from almost everywhere.

    See more
    Praveen Mooli
    Praveen Mooli
    Engineering Manager at Taylor and Francis | 12 upvotes 687.8K views
    MongoDB Atlas
    MongoDB Atlas
    Java
    Java
    Spring Boot
    Spring Boot
    Node.js
    Node.js
    ExpressJS
    ExpressJS
    Python
    Python
    Flask
    Flask
    Amazon Kinesis
    Amazon Kinesis
    Amazon Kinesis Firehose
    Amazon Kinesis Firehose
    Amazon SNS
    Amazon SNS
    Amazon SQS
    Amazon SQS
    AWS Lambda
    AWS Lambda
    Angular 2
    Angular 2
    RxJS
    RxJS
    GitHub
    GitHub
    Travis CI
    Travis CI
    Terraform
    Terraform
    Docker
    Docker
    Serverless
    Serverless
    Amazon RDS
    Amazon RDS
    Amazon DynamoDB
    Amazon DynamoDB
    Amazon S3
    Amazon S3
    #Backend
    #Microservices
    #Eventsourcingframework
    #Webapps
    #Devops
    #Data

    We are in the process of building a modern content platform to deliver our content through various channels. We decided to go with Microservices architecture as we wanted scale. Microservice architecture style is an approach to developing an application as a suite of small independently deployable services built around specific business capabilities. You can gain modularity, extensive parallelism and cost-effective scaling by deploying services across many distributed servers. Microservices modularity facilitates independent updates/deployments, and helps to avoid single point of failure, which can help prevent large-scale outages. We also decided to use Event Driven Architecture pattern which is a popular distributed asynchronous architecture pattern used to produce highly scalable applications. The event-driven architecture is made up of highly decoupled, single-purpose event processing components that asynchronously receive and process events.

    To build our #Backend capabilities we decided to use the following: 1. #Microservices - Java with Spring Boot , Node.js with ExpressJS and Python with Flask 2. #Eventsourcingframework - Amazon Kinesis , Amazon Kinesis Firehose , Amazon SNS , Amazon SQS, AWS Lambda 3. #Data - Amazon RDS , Amazon DynamoDB , Amazon S3 , MongoDB Atlas

    To build #Webapps we decided to use Angular 2 with RxJS

    #Devops - GitHub , Travis CI , Terraform , Docker , Serverless

    See more
    Node.js
    Node.js
    Java
    Java
    Spring Boot
    Spring Boot
    Python
    Python
    Flask
    Flask
    Django
    Django

    Since you said that your middleware will be accessing DB and expose API, you can go with Node.js. It will make your development fast and easy. Suppose in future you will add some business logic you can choose Java with Spring Boot or Python with Flask / Django. NOTE: Language or framework doesn't matter. Choose based on your programming knowledge.

    See more
    Interest over time
    Reviews of NestJS and Spring Boot
    Review ofSpring BootSpring Boot

    spring boot allow my team to start building web services quickly and package it in a stand alone application

    How developers use NestJS and Spring Boot
    Avatar of Climate CoLab
    Climate CoLab uses Spring BootSpring Boot

    Spring-Boot allows us to create stand-alone web servers and helps us configure many of our dependencies with sane default, while maintaining flexibility where we need it.

    Avatar of Emcee
    Emcee uses Spring BootSpring Boot

    Probably the best application framework in Java, by far. Time-proven, mature.

    Avatar of p009922
    p009922 uses Spring BootSpring Boot

    light weight server approach for REST-services

    Avatar of Project44
    Project44 uses Spring BootSpring Boot

    All services are spring-boot applications.

    Avatar of Vaadin
    Vaadin uses Spring BootSpring Boot

    Solid base for Java-based web app backend

    Avatar of Naologic
    Naologic uses NestJSNestJS

    All the REST API is written in NestJS

    How much does NestJS cost?
    How much does Spring Boot cost?
    Pricing unavailable
    Pricing unavailable
    News about NestJS
    More news
    News about Spring Boot
    More news