# JavaScript Callbacks and Flow Control in Node.js

DevFeed: [JavaScript Callbacks and Flow Control in Node.js](<https://devfeed.tech/articles/it-ain-t-about-the-callbacks-38929.md>)

Original publisher: [Read original article](<https://idea.popcount.org/2013-09-05-it-aint-about-the-callbacks>)

Author: Marek

Published: 2013-09-04T22:00:00Z

Content type: article

Language: en

Sources: [Marek Majkowski](<https://devfeed.tech/sources/marek-majkowski.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Node.js](<https://devfeed.tech/topics/node-js.md>), [Streams](<https://devfeed.tech/topics/streams.md>), [race-condition](<https://devfeed.tech/topics/race-condition.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [callback](<https://devfeed.tech/tags/callback.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [programming](<https://devfeed.tech/tags/programming.md>), [race-condition](<https://devfeed.tech/tags/race-condition.md>), [streams](<https://devfeed.tech/tags/streams.md>)

## AI overview

This article argues that callback-based programming can encourage poor solutions when flow control is overlooked. It uses a Node.js echo server to explain connection-acceptance limits, unbounded buffering, and how Node.js Streams provide basic flow control.

## Source excerpt

It ain't about the callbacks... ... it's about the flow control Programmers tend to be very opinionated about programming with callbacks. It's just a programming style, not a big deal usually, but it becomes an issue when a platform forces you to use only the callback style. I'm talking about you, JavaScript. In my opinion people forget an important point in the discussion about callbacks.