06:42
<littledan>
Yes. You follow the causality back to the last point JS was running and capture there.
Sure, just important to understand that you are describing something which won’t be as simple from an implementation/specification perspective. So it raises the question of how/whether other specification authors will be able to do it. Or, arguably, even how developers will build a mental model around it.
06:42
<littledan>
Yes, generally agreeing. Though I don't feel I'm familiar enough with the intricacies of realms to say if each should get its own context or if it should be considered an additional empty node which descends from the root which initiated the realm?
I can’t think of an observable difference between these two options
06:43
<littledan>
Which, from what I understand, is roughly what AsyncContext is doing too.
Yes, AsyncContext.Snapshot is the context frame and we just need to copy the pointer. This is really important.
06:44
<littledan>
Literally every Fortune 500 company is doing context management with Node.js at the least via an installed APM product. Optimizing for the cost of those expected flows will significantly reduce cloud costs across the industry.
Every single one of these are using flow around though, right?
16:27
<Stephen Belanger>
Yes, only because ALS presently does flow-around with promises/awaits. Almost every one of the Fortune 500 companies I've talked to about it has complained about it though.
16:28
<Stephen Belanger>
And it's all APM vendors which are the ones using it in most of those companies, which I've talked to folks from all the APM vendors and they're mostly all in agreement that flow-through is the correct semantic for their use case.
16:43
<littledan>
Yes, only because ALS presently does flow-around with promises/awaits. Almost every one of the Fortune 500 companies I've talked to about it has complained about it though.
Right so this is the thing you need to get more concrete on—scenarios where this complaint happens. Specific cases, not generic
16:44
<littledan>
And it's all APM vendors which are the ones using it in most of those companies, which I've talked to folks from all the APM vendors and they're mostly all in agreement that flow-through is the correct semantic for their use case.
And/or bring some of those people to this chat room (we haven’t had much engagement with Matteo since he joined unfortunately)
20:28
<Stephen Belanger>
I just had a call with Matteo earlier actually about a user case where both flow-through and set/get semantics are needed. He said he would share the example from our call here later.
20:29
<Stephen Belanger>
And I'm trying to get more APM folks into the conversation. Unfortunately the APM space has historically been fairly bad at open source involvement so it's not so easy to get them to engage on stuff like this.