Taking Ash Framework’s DSL on a Spin for RPC Fun

Calculating P&L When a Trade Spans Multiple Sessions

What happens when an external event arrives after the process context that created it is gone — the record gets filed twice, and a FIFO matcher scoped to that context produces a confidently wrong number instead of an error.

https://seriousalchemy.com/pnl-sessions