4 ms·
This is the same pattern as versioning, but with an extremely short sunset for the old version.
by mcdonje 11mo ago
This is the same pattern as versioning, but with an extremely short sunset for the old version.
- marcosdumay 11mo agoIt's actually not. Versioning is a concept where each version lives in non-intersecting time intervals. This concept is completely focusing on the fact that your structures lifetimes must absolutely have non-empty intersections. It's close to the opposite.
- chrisweekly 11mo ago> "Versioning is a concept where each version lives in non-intersecting time intervals." Is it? Node.js publishes "Current", "LTS" and "Maintenance" versions, and there's always a reasonable time interval during which consumers typically upgrade from eg Maintenance to newer LTS or even Current. From the publishing side, that's very similar to "expand and contract", in temporarily expanding what's supported to include Current, and dropping support for oldest versions leaving Maintenance. It's continuous instead of ad hoc, and there are more than 2 versions involved, but the principle is basically the same (at least if you squint). Though I guess if you're talking strictly about schema management strategies, then yeah, "versioning" might be very different from "expand contract", as you noted.
- UltraSane 11mo agoIt is often necessary to use multiple versions at the same time
- afiori 11mo agoThat is a very reductionist view and not particularly useful either. It shares elements with versioning and you could likely implement this using explicit versioning, but it is completely independent of it. The main difference I see is that of focus here the focus is to migrate a database without downtime or excessive global locks, keeping multiple versions of the schema is a detail.
- mcdonje 11mo agoSeems like you agree with my assessment.
- afiori 11mo ago:( Things can have similarities without being the same. Also not being unique is not a moral failure. I think I am failing to understand your stance.
- mcdonje 11mo agoSaying the pattern is the same isn't the same as saying two things fitting the pattern are the same in every respect. Patterns are necessarily reductionist, like any sort of comparison of things that aren't 100% similar. There is value in recognizing patterns. They're useful for comprehension and memory.