---
title: "Discussion on \"Blocking vs Non-Blocking Code in Node.js\" | Hashnode"
description: "Discussion on \"Blocking vs Non-Blocking Code in Node.js\". Blocking vs non-blocking code in Node.js: readFileSync vs readFile, why one blocking call can freeze your whole server, and how to avoid it."
url: "https://hashnode.com/posts/blocking-vs-non-blocking-nodejs/6aa67cf304e9d8f7671640fb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Blocking vs Non-Blocking Code in Node.js](https://ayushjjainn.hashnode.dev/blocking-vs-non-blocking-nodejs?utm_source=hashnode&utm_medium=feed)

Blocking vs non-blocking code in Node.js: readFileSync vs readFile, why one blocking call can freeze your whole server, and how to avoid it.

Sep 13 · 7 min read · ayushjjainn.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#software-development](https://hashnode.com/tag/software-development)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#non-blocking](https://hashnode.com/tag/non-blocking)
-   [#coding](https://hashnode.com/tag/coding)

## Written by

[Ayush Jain](https://hashnode.com/@ayushjjainn)

@ayushjjainn · Jaipur, RJ

  
[View profile](https://hashnode.com/@ayushjjainn)

Building cool things for the internet

I like making things with code. This is where I share my projects and the bugs I ran into.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
