I have an akka-stream project, in which I'd like to detect bottle-neck stages, to try and optimize them.
I was thinking that it could be useful to use an analogy between streams and electrical currents, to see which parts are more resistive.
Electrical intensity can be easily understood as the rate at which elements are streamed at a given point, in elts/sec. However I have trouble understanding what would be the analog for tension between two points of the flow (or potential at some point) in this setting.
Any ideas?
If you think this analogy has no meaning at all, could you explain why, and maybe give me clues on how to find possible bottle-necks ?
Thanks!