I'm trying to send large number of invitations (say 1000) through Invitation API.
I'm creating a background thread and then using Parallel.ForEach()
method to send these invitations concurrently with maxDegreeOfConcurrency
set to 10
.
Initial 150-170 requests go fine and creates invitations as expected. But after that almost all of the requests fail.
Can anyone suggest the appropriate method to implement this functionality?
Thanks in advance.