# NodeJS vs Java Spring

## Java Spring

![](https://1374779285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFW3x2aqEO8GF2kr3VU%2Fuploads%2FgGOSSIm5dKcBUt2EqPcT%2Fscreenshot-mindmajix.com-2022.11.17-17_20_20.png?alt=media\&token=aab1a5e2-29a5-469d-8667-02f0dd87a15b)

* For java spring, it will create new thread behind the scene and with blocking I/O modal

## NodeJS

![](https://1374779285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFW3x2aqEO8GF2kr3VU%2Fuploads%2FMJVEOUl09rtGezjeJte0%2Fscreenshot-mindmajix.com-2022.11.17-17_21_32.png?alt=media\&token=233c4f21-a740-4f03-838c-ed32e70d77bc)

* In NodeJS, it is single-thread with non-blocking I/O modal with help of event loop

## References

{% embed url="https://mindmajix.com/java-spring-vs-node-js" %}
