4 ms·
Assuming the service is not operating on the whole format, then it's already implicitly depending on the presence of those fields and also implicitly depending
by naasking 3y ago
Assuming the service is not operating on the whole format, then it's already implicitly depending on the presence of those fields and also implicitly depending on the fact that they are a strict subset of the overall set of fields in the protocol. I'm not sure why making this fact slightly more explicit by having the client add a single interface would be a big pain.
In principle, this also enables type checking the whole pipeline before deployments since the interfaces can be known upfront rather than latent in the code.
- kentonv 3y agoSingle interface? In the search infrastructure example I mentioned up-thread, we had hundreds, maybe thousands of schemas involved.
- naasking 3y agoI said a single interface per client, where I'm using "client" as a stage in the pipeline. Each piece of middleware that plugged into this pipeline already implicitly depends on a schema, so why not describe the schema explicitly as some subset of the underlying message?