Java Multithreading CreateOrUpdateContact

SOLVE
mclayton
Participant

Anyone have experience with posting to the CreateOrUpdateContact web service using multi threaded Java?
I have a few thousand records that take forever to upload due to the API limits.

If I open separate sessions in 3,4 threads, will Hubspot block me? Will there be API count issues?

I'd like to get some feedback before I attempt to multi thread my client code.

0 Upvotes
1 Accepted solution

Accepted Solutions
3PETE
Solution
HubSpot Employee

@mclayton Running multiple threads wouldn't get you around the HubSpot speed limits. Since we are going to track the speed limits by the token and key and not by an individual thread. You would be prone to receiving 429s on different threads depending on which one broke the speed limit which would probably make things more confusing and not speed up the overall process.

View solution in original post

1 Reply 1
3PETE
Solution
HubSpot Employee

@mclayton Running multiple threads wouldn't get you around the HubSpot speed limits. Since we are going to track the speed limits by the token and key and not by an individual thread. You would be prone to receiving 429s on different threads depending on which one broke the speed limit which would probably make things more confusing and not speed up the overall process.

View solution in original post