Re: Deleting a record exactly once

2019-08-01 Thread Adam Parsons
Hi Ian, There's a few things you could try out. You could employ locking in your database, so that two workers cannot interact with the same row at the same time. Step 4, sever B no-op'ing implies you're already using a technique to require unique values in Records, perhaps apply the same

Deleting a record exactly once

2019-08-01 Thread Ian Hoffman
Hi everyone, I work on a medium-sized app where we might have tens of concurrent requests in flight at once. The application runs on Django 1.11, Python 3.5. The problem I have is this: the web client requests to delete a record. On a successful delete, the app creates an "audit" record