---
title: "Discussion on \"Nodejs Stream 的基礎概念\" | Hashnode"
description: "Discussion on \"Nodejs Stream 的基礎概念\". 大綱\n本文主要會說明 Nodejs 中，透過 stream api 可以用達成以下好處\n\n可以比較有效率的處理大型資料，避免大型檔案遭成程序阻塞\n可以透過有限度的資源處理相同量級資料\n\nWhat is Stream?\nStream 代表一個資料流。\n通常是指處理大型資料把切分為一堆堆小型區塊資量逐步處理的方式\n\nWhy use Stream?\n\n節省資源(記憶體使用)\n\n透過 Buffer 可以效率處理資料 I/O\n\n\nStream 類別\n根據資料的流向以及處理方式可以分為以下四類 Data S..."
url: "https://hashnode.com/posts/nodejs-stream/64de5d1d8b2b73324cdee6fd"
---

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

Discussion

# [Nodejs Stream 的基礎概念](https://ganhua.wang/nodejs-stream?utm_source=hashnode&utm_medium=feed)

大綱 本文主要會說明 Nodejs 中，透過 stream api 可以用達成以下好處 可以比較有效率的處理大型資料，避免大型檔案遭成程序阻塞 可以透過有限度的資源處理相同量級資料 What is Stream? Stream 代表一個資料流。 通常是指處理大型資料把切分為一堆堆小型區塊資量逐步處理的方式 Why use Stream? 節省資源(記憶體使用) 透過 Buffer 可以效率處理資料 I/O Stream 類別 根據資料的流向以及處理方式可以分為以下四類 Data S...

Aug 17, 2023 · 6 min read · ganhua.wang  
Updated May 7, 2024  
Read the article

-   [#nodejs-stream](https://hashnode.com/tag/nodejs-stream)

## Written by

[Yuanyu Liang](https://hashnode.com/@gsonLiang)

@gsonLiang

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

nodejs developer, backend enigneer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
