News for hackers. Stuff that matters.
Re:Monorepos and Forced Migrations by jarofgreen on Wednesday October 13, 2021 @03:13AM (#28849146)
So if I worked at Google and in my library/service provided a versioned API what would happen? Would I be told off? Do people do this?

Eg, /v1/dosomething, I need to make a breaking change but I can still provide the old service too so I leave v1 alone and instead add /v2/dosomething

Re:Monorepos and Forced Migrations by sagarm on Wednesday October 13, 2021 @03:58AM (#28849509)
The article is talking about direct source dependencies, not service dependencies. Services have to be backwards compatible or provide a migration period (of course, there's no real alternative). Sort of similar to your /v2/. If you as a service provider really want to support N versions of your service, you could in theory have multiple instances of your service on different versions. Sounds like an ops and usability nightmare to me though.

Clients must be rebuilt every few months so services do not have to support old clients indefinitely, so as a service provider you can rely on a reasonably well constrained migration period.