HI , We have a two software components A & B. Communication is unidirectional from A to B . B is the consumer or lets say it subscribes\registers with A and A sends data to B on certain events on database . How can we implement Consumer driven Contrat testing in this case .I guess similar would be the case for software components which registers on a message bus
t
Timothy Jones
01/11/2023, 9:30 AM
Yes. B is the consumer here
✅ 1
Timothy Jones
01/11/2023, 9:30 AM
This would be what is called a “message pact”
☝️ 1
Timothy Jones
01/11/2023, 9:31 AM
I’m on mobile right now, but have a look for that in the documentation and you should be able to find some useful information. What you describe is a common use case for message pacts
I think this AMA we talk a bit about message pact strategies (for AWS SNS/Kafka, but we discuss the general principles): https://docs.pact.io/help/amas#ukeu