we have microservice architecture and we talk through kafka using protobuf
currently I am given a task which involves changing protobuf messages
currently we have same messages defined multiple times for each service
so if I want to make a change, for example rename json field name, I have to do that in 3 or more services
Is that optimal? I was thinking about creating a separate repo for protocol buffers stuff, each service would depend on it but all messages would be defined only once
keep it DRY
Don't repeat definitions, just import the necessary proto file, changes would reflected once you compile the mesage.
Обсуждают сегодня