Good morning, I'm wondering what is the best pract...
# pact-broker
y
Good morning, I'm wondering what is the best practice for 1. multiple consumers for a single producer 2. numerous producers for a single consumer I assume for section 2 I will create multiple contracts that all of them will be approved by the consumer but what we do about section 1
t
I assume for section 2 I will create multiple contracts that all of them will be approved by the consumer
You mean for 1, you have multiple consumer contracts each of them verified by a single provider, right? For 2, you would have the consumer have a contract with each provider, which is then verified by each provider
y
1. Multiple services that publish an event that will verify the same contract - ? 2. Multiple contracts will be verified by the single publisher(pub-sub) - i.e. will need to iterate it for all contracts?
t
1) Yes, the publishing services verify the contract of the consumer 2) Yes. Although, I think you usually don’t have to actually do the iteration, because the verifier does it for you. It might depend on the language you’re using
☝️ 1