I've tried many different combinations using Azure Data Factory to create a clone of a CosmosDB collection that maintains the order of items written to a partition, but unless I specify a batch write size of 1, it does not keep the order. Even triggering from the Change Feed of the source in a mapping data flow does not preserve order. We have written a simple tool that copies a record at a time, but obviously, that is slow.
We are using Cosmos as an event store, and the change feed processor feeds our projectors - it all works really well, but we would like to copy the events out to a different environment to test changes. This requires the original write order to be preserved.
Thanks in advance.