johanhaleby / occurrent

Unintrusive Event Sourcing Library for the JVM
https://occurrent.org
120 stars 19 forks source link

Compatibility with Azure CosmosDB #97

Open vlev opened 3 years ago

vlev commented 3 years ago

Hello,

We are looking into an option to use occurrent with Azure CosmosDB witch supports MondoDB API ver. 4.0 Could you please tell why there is a requirement to use MongoDB 4.2? Will occurrent mongodb event-store implementations fail to work with slightly old api implementation?

Vitaliy

johanhaleby commented 3 years ago

Hi vlev,

Sorry for the late response, I've been on vacation.

If I remember correctly it has to do with MongoDB change streams and resume options (this specifically: https://docs.mongodb.com/manual/changeStreams/#startafter-for-change-streams). But if you're not deleting the entire database or event collection then I think it'll work anyway. It would be great if you could try it out, and tell me if it does work for you. If not, I can probably make it work for 4.0 as well :)

/Johan