I am integrating with the Salesforce REST API and am upserting Lead records against an External ID using a Patch method.
For some crazy reason I am seeing duplicate records on the Salesforce side, even though I am making the call only once from my external Java code. I know that I need to make my external ID enforce unique values, but shouldn't using patch keep this from happening too?
About 10% of my records per day are getting created at least 2 times (and the timestamps are identical).
I just dug through my logs - my external system is getting hit with requests to send back to SF half a second apart - this is creating near-simultaneous calls to SF and the dupe records. I'm going to put some queueing in place on the external system to throttle this.