I think that's a valid analogy. A while ago we were investigating similar 
things and also arrived at that analogy. In practice, it turns out that 
fused streams, i.e. multiple stream components that run in one actor will 
skew measurements.

Not sure how much sense these analogies make when going further down this 
route. Just following the types (i.e. the units), we could define the unit 
of resistance as work units per element, which would give us for the 
potential work unit per time. So, the resistance would describe the 
"weight" of the stream element, the potential the speed of the CPU, and the 
intensity the resulting speed of processing.

Johannes

On Friday, April 7, 2017 at 11:42:47 AM UTC+2, Cyrille Corpet wrote:
>
> 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!
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to