paint-brush
Processing Massive Amounts of On Demand Data Without Crashing NodeJS Main Threadby@wesleymr7
414 reads
414 reads

Processing Massive Amounts of On Demand Data Without Crashing NodeJS Main Thread

by Wesley Miranda14mMarch 15th, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Node.js can have some problems processing big files because the main thread(responsible for the event loop) can stop. For this reason, I decided to write about how to use streams in node.js showing a funny example. Application downloads a huge CSV file from Google Cloud Storage, processes the data, transforms it into a JSON file, extracts some data insights, and finally compresses the file and uploads it again to the Cloud Storage.
featured image - Processing Massive Amounts of On Demand Data  Without Crashing NodeJS Main Thread
Wesley Miranda HackerNoon profile picture
Wesley Miranda

Wesley Miranda

@wesleymr7

Brazilian full-stack developer passionate about the Javascript environment

0-item
1-item

STORY’S CREDIBILITY

Code License

Code License

The code in this story is for educational purposes. The readers are solely responsible for whatever they build with it.

DYOR

DYOR

The writer is smart, but don't just like, take their word for it. #DoYourOwnResearch

L O A D I N G
. . . comments & more!

About Author

Wesley Miranda HackerNoon profile picture
Wesley Miranda@wesleymr7
Brazilian full-stack developer passionate about the Javascript environment

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Mchone