Custom scheduler: Using loom for deterministic simulation testing

Yannick Lecaillez yannick.lecaillez at pingidentity.com
Tue Jul 8 15:06:34 UTC 2025


On Tue, Jul 8, 2025 at 4:31 PM Robert Engels <robaho at me.com> wrote:

> I am curious though - what if the application code uses async native type
> calls (NIO). What would be synchronous testing in this? I assume it would
> have to behave as if it was synchronous - callback immediately called - but
> that’s not how it works in the real world - so what are you testing ?
>

All that is quite early stage but we have a tiny network simulator PoC
(based on the blocking Socket API) which is deterministic and allows us to
inject fake failures and latencies.
We don't use async I/O anymore, thanks to Loom. No async, no callback.

-- 
_CONFIDENTIALITY NOTICE: This email may contain confidential and privileged 
material for the sole use of the intended recipient(s). Any review, use, 
distribution or disclosure by others is strictly prohibited.  If you have 
received this communication in error, please notify the sender immediately 
by e-mail and delete the message and any file attachments from your 
computer. Thank you._
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20250708/52ea2b89/attachment.htm>


More information about the loom-dev mailing list