[openstreetmap/openstreetmap-website] Idempotency for API 0.6 (#2201)

mmd notifications at github.com
Sun Apr 7 16:12:24 UTC 2019


Re diffResult size: the worst case scenario would be a changeset having 10k entries. This would amount to roughly 800k as XML message. If it turns out that we can keep just the last upload as @simonpoole proposed, this shouldn't be too bad? Those entries shouldn't be too long living. After an hour of inactivity, they can be removed by the latest.

Re: exclusive lock: I wasn't aware about an exclusive lock timeout value in production. Is here one, and how large is it?

The hash value may be a bit of an overkill, I agree. I thought it might be good to have an additional safeguard in case clients send different content using the same idempotency key due to some programming mistake. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2201#issuecomment-480605088
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190407/8910f306/attachment.html>


More information about the rails-dev mailing list