I have a number of existing collection with manual RU provisioning which I would like to migrate to be Autopilot managed to better automatically deal with varying levels of demand.
The collections contain many GB of historical timeseries data, and I cannot have any downtime where new or historical data is not available to customers. I must also ensure no data is lost during the migration
Once a day, a new day of data is bulk uploaded to the cosmosdb collection, and the collections can be queried at any time by the customer-facing service in front of them.
For migration, I was considering the following: 1. Create new autopilot collection 2. Modify service to query both old and new collection and deduplicate any data present in both 3. Redirect data upload to new collection 4. Use ADF (Azure data factory) to copy the contents of the old collection to the new Autopilot one 5. Update service to only query the new collection 6. Drop old collection.
Is this the best migration strategy, or is there an alternative approach which would provide a better customer experience, or be less work?