How to make atomic writes to blob storage and database?

27 views Asked by At

I'd like to have a method which writes files to blob storage (e.g. S3, minIO) and associated metadata to a database (e.g. mongoDB). If either write fails, none should succeed. In other words, this combined write should be atomic.

There are some relevant, very old posts (1, 2) with proposed solution outlines. However, I assume that this must be a super common scenario, so maybe now there's already a robust, proven and easy-to-use library?

0

There are 0 answers