Re:Nubank acquires Cognitect
by andrenth on Thursday July 23, 2020 @12:26PM
(#23929047)
Thanks! Can you talk a bit more about the static checking of cross-boundaries schemas? Any relation to tools that allow a schema to evolve without breaking compatibility, like protobuf?
[ Parent
| on HN ]
Re:Nubank acquires Cognitect
by hcarvalhoalves on Thursday July 23, 2020 @04:31PM
(#23931907)
It's not based on protobuf. There's some in-house tooling that checks the schemas of producers against consumers against known versions (aka the versions in production), and we run it as part of the CI.
Since services implement standard components/protocols there are standardised hooks to extract these schemas definitions from each HTTP endpoint or Kafka consumer.
Does this rely on code generators or maybe a schema generator from code? Iām curious about how schema and code are kept in sync.
Re:Nubank acquires Cognitect
by hcarvalhoalves on Friday July 24, 2020 @03:19AM
(#23936658)
Yes. The schema definition is part of the code/data itself, so you can reference a particular schema by its git rev hash.