matthew.schaad
2021-07-19 14:54
> dropping the extra work of trying to get the subset of the OAS into the hands of the consumer
Hmm, are we talking past each other? Not sure I follow this comment. I want to get the original OAS into the hands of the consumers, and let them filter the OAS on their own and generate clients from it. At that rate, the OAS given by the provider is like a menu of what's available, and then consumers advertise "I'll have the `POST /widgets` please, with a side of `GET`."
Anyway, maybe you understood what I meant already, and you were just trying to point out that we could skip the part where each team has to generate its own client; rather, there can be one client to rule them all given by the provider, and we can just let Pact do its work on the consumer side.
Technologically, that will totally work. Culturally--for me--it won't. Why not? Because my teams don't have the discipline already of maintaining Pacts, and the disparity between what's in the Pact and what's actually being consumed is a constant problem to be managed. Basically, I don't think they'll do it. But if I push the work of client generation to consumers, I can tie actual consumption to the Pact directly, and my people-problem goes away.
Another way to think of it is this: I need architectural guardrails that enforce the guarantee that Pacts match actual consumption patterns, because I can't rely on culture or process yet.