I'm using service stack to accept http requests that add rows to a back-end database, fairly standard stuff. The problem I have now is that sometimes, the devices sending data to the service, send the same request milliseconds apart. This then leads to database constraint errors as the first request was still inserting the new rows, etc etc
So, I'm thinking I need to find a way to detect a duplicate request and either ignore it or throw an HttpError back to the client. The idea I have at the moment is to store the full raw POST data to a temp table, and delete it once the processing is complete. On each POST request, I'd lookup the data in there and ignore if it's a duplicate. Is there any easier way to detect duplicate http requests in ServiceStack?