-
Notifications
You must be signed in to change notification settings - Fork 780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tkp/contact importer #278
Tkp/contact importer #278
Conversation
6a271ac
to
162b6e2
Compare
162b6e2
to
1dc832b
Compare
}) | ||
|
||
|
||
// assert.equal(sg.limiters['/v3/contactdb/recipients'].queue.length, 2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mrfelton commented code in test
Hi @mrfelton, Is this one ready for review to merge? |
@thinkingserious yes, we're using this helper class in production. It could probably do with some more unit tests, but it does it's thing. I just successfully used it to import 199,713 contacts into a Sendgrid account. |
@thinkingserious the changes in this PR were built ontop of the other one. It should apply cleanly ontop of it. |
Can you please send us your mailing address and T-shirt size to [email protected]? |
Initial concept for a helper that automatically batches contacts into sets of 1500 and throttles the API usage to a maximum throughput of 3 requests per 2 seconds (the limit imposed by SendGrid). Results of each batch import are emitted as an event containing details of the batch (the contacts that were uploaded and the results of upload).
Addresses #273.
Note, this patch builds on work done in #275.