We have a couple of smartphone apps that rely on Amazon SimpleDB and s3.
The architecture is typically very simple, the data not sensitive, there are not too many users per app, the apps query Amazon directly (as opposed to have our own server in the middle).
It has been all good so far and catered perfectly for our raisonable needs.
But now, I have this problem where one of our apps has to trigger an operation that is made of 2 SimpleDB puts.
The problem is that those “2 puts” have to be done in an atomic way, as a all-or-nothing block. Between the 2 puts, the database has no integrity and no-one should be able to read it in that bad state.
So, what I’m looking at is the simplest way to achieve this, I guess it will involve some sort of queues where operations are processed one by one, including just reads.
But to be honest, it’s not my area and I hope it doesn’t involve writing some very complex Webapp on a dedicated server.
Any workaround or pointers towards the sort of knowledge I obviously don’t have yet would be greatly appreciated.
Thanks!