Skip to content

Define who assigns and matches the token for requests #26

@wmamills

Description

@wmamills

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:

  1. transport generating the token and doing correlation
  2. bus generating token and doing correlation
  3. transport generating token and bus doing correlation
  4. 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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions