-
Notifications
You must be signed in to change notification settings - Fork 2
Description
From Bertrand:
I think we have something unclear here that we should define: who is generating the token and handling the correlation ?
All models are possible:
- transport generating the token and doing correlation
- bus generating token and doing correlation
- transport generating token and bus doing correlation
- bus generating token and transport doing correlation
In my view solutions 3 and 4 do not make sense as the one doing correlation must be in charge of generating the token.
I see some arguments to consider:
a bus that only handles one message a time does not need the token -> in favor of 2
a bus doing the correlation would want to generate itself the token, same for transport -> against 3 and 4
having the token and correlation handled at transport level would allow to reuse some code and simplify the bus work -> in favor of 1
in case of 1, the bus would still have to handle its own correlation for bus messages -> in favor of 2
OS blocking semantics for drivers might be easier to handle in the transport to prevent busses to potentially block where they should not -> in favor of 1
I am in favor of 1, even if the bus would have to handle correlation for its own messages because of the OS blocking semantics arguments but definitely something open for discussion.