CosmosDb Migration Runner - should it be open source? #1608
-
At a client we are currently working on a CosmosDb Migration Runner inspired by Fluent Migrator. The language is c#, the Target Framework netstandard2.0. Very early stages, not properly battle tested yet. The basic idea is that per collection / document type combination you can migrate documents up to a newer version and down to an older version, as well as renaming collections (which is basically creating a new collection, transferring all the documents, and deleting the old one, since renaming a collection doesn't really exist in CosmosDb). We might introduce transferring documents by document type between collections in the near future as well. All this is achieved by writing migrations as c# classes. This library brings us the following benefits:
As we are building this, we were wondering if this might be a useful library to open source. Would developers be interested in using this? Since it is very generic functionality, we see no downside in sharing it with the community. For us it's a great way to get feedback and contributions. Looking forward to your feedback! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
@josdeweger Certainly. I find it hard to believe that writing migrations in CosmosDB is business proprietary. Heck, I even explain to people some of my more "secret sauce" knowledge as a data engineering consultant/expert, and how I use FluentMigrator here: #1387 If you want to contribute, you'd have to update all the tests |
Beta Was this translation helpful? Give feedback.
-
For now I've decided to put what I have up on a personal repo. I can't make the time investment to try and integrate this with FluentMigrator (yet). |
Beta Was this translation helpful? Give feedback.
@josdeweger Certainly. I find it hard to believe that writing migrations in CosmosDB is business proprietary.
Heck, I even explain to people some of my more "secret sauce" knowledge as a data engineering consultant/expert, and how I use FluentMigrator here: #1387
If you want to contribute, you'd have to update all the tests