Skip to content

Leave only code input triggers and output message type #321

@marcingrzejszczak

Description

@marcingrzejszczak

Currently, we support 3 different combinations of messaging contracts (-> means a message is sent). Let's say that we store contracts on the producer side. Our producer is service called A.

  • code input triggers an output message A -> B
  • input message triggers an output message B -> A -> B
  • input message gets swallowed - there's no output message B -> A

come to think of it the 2nd and 3rd scenario are actually a combination of the 1st one. Let's imagine that we have service A and B.

A -> B (case 1)
B -> A -> B (case 2). This actually is B -> A (case 1) and A -> B (case 1 again). So we should have a contract on A and B side.
B -> A (case 3) - case 3 is actually case 1. The contract should be on the B side, not the A side.

I think that we should remove these 2 combinations.

WDYT @jkubrynski @fitzoh @mbogoevici @dsyer

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions