Parallel and In Series

·

1 min read

Parallel architecture is like connecting two batteries in parallel.

NodeJS event loop is like connecting two batteries in series. The pressure and voltage increases.

Both are additive. One adds more work per same time. The other queues more work for the same time.

Tradeoffs operate on the natural law of polarity. 0 and 1.

Resistance is like back pressure.

We can agree that fast and slow are opposites. Let's not worry about where they differ. Let's call them opposites.

Can you make 0 + 0 equal 1?

It depends on how you define the +.

This is the basis of many flexible logic riddles.

When you add fast + slow it equals fast.

But when you combine, multiply, fast and slow, it always equals slow.

It's the difference between in-series and in-parallel.

Concurrency can include in-parallel. The NodeJS event loop is in-series concurrency.

Async architecture is additive. Monolithic architecture is multiplicative.

Connecting two batteries in-series increases the voltage. It forces more along the same path.

Connecting them in parallel increases the current.

I concur. I go along with the current. What is the current state of NodeJS?

You are only capable of thinking of one thing at a time. Your CPU is the same.