Hey everyone 👋
I ran into something with Pact Broker and monorepos, and wanted to check how others are handling this.
We have a pretty typical setup:
• 1 consumer app
• A provider that lives in a monorepo, split into multiple microservices
In Pact Broker, those microservices show up as separate provider pacticipants (we currently have 4).
The issue is:
Whenever a contract changes, Pact Broker triggers a webhook for each provider pacticipant — so we end up with 4 webhook calls.
All of them hit the same CI pipeline, which means the exact same pipeline runs 4 times in parallel 😅
What we’re trying to achieve is basically:
→ run the pipeline once per contract change, not once per provider
Right now we’re handling it on the CI side (Azure DevOps concurrency / locks), and also considering putting a small webhook gateway in front to deduplicate events.
But I was wondering:
Is there any Pact-native way of dealing with this in a monorepo setup?
Or is the general expectation to handle this kind of deduplication outside of Pact?
Curious how others approached this in real projects 🙏
Thanks!