yeah, no shit that function doesn't do exactly once delivery. No, I'm not going to just fix that in a few lines of code today.

Yes, I know the other guy promised to fix it to do that. he's paid by the hour, and he put in a check. that's the code that I'm looking at, which failed when there was a DB timeout and didn't deliver at all. #messageQueue

fun fact: when a cosmos database insert times out, the record could:
a) have not been written,
b) have been written
c) a secret third thing, that due to consistency levels and your database performing very poorly during a timeout incident, looks like a for a while, then turns into b. The "does it exist" check isn't reliable

NoSql eventual conistencyis awesome! #cosmosdb