Better HN
topnewbestaskshowjobs
Log inSign up

clementroche

2 karma · joined May 24, 2019 (7y ago) · 1 submissions

Submissions

comment 6y ago · link · parent

I'd be interested to understand how they manage their "common" library, especially the RPC bit.

I find it very painful to version APIs signatures and protocols: Let's say service S1 has a method "DoSomething(a, b)" and you want to add a new feature that makes is "DoSomething(a, b, c)" how do you handle that ? From what I've seen you would do "DoSomething_v2(a, b, c)" but that seems hardly sustainable: - you need a new version of the shared library for the new RPC calls - you need all services to maintain a lot of code to support different signatures

And I don't think rewriting all the callers to use the new signature is really an option. Or maybe they keep previous versions of the services deployed and they have some kind of routing that would find which service supports what signature (+probably some metadata like a minimum version number ?).

People of HN, what would be your advice on approaching this situation ?