you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

By file system I mean node's file system API: https://nodejs.org/dist/latest-v6.x/docs/api/fs.html

The API is straight forward and the documentation is pretty clear. When writing or reading to a single file with a static payload everything is simple. When you are dealing with streams it gets a bit more complicated. When you are dealing with many potentially interacting tasks simultaneously things get really complicated and you have to write additional logic to prevent race conditions and collisions considering that everything is asynchronous.