Best method for >1000 CFHTTP calls?
Hi there,
We're testing Amazon's new Simple Email Service with a CF web app. We will sometimes need to send out 5000-10000 individual emails.
CFMAIL works will enough for us when we have SMTP service since it spools to the disk and the user doesn't have to wait for all the mail to be delivered - but sine Amazon's SES doesn't allow SMTP and has to be accessed via web service, that means a CFHTTP call for every email.
What is the best way to approach a problem like this? Just create a thread with cfthread and no request timeout so it acts without respect to what the user is doing and without making the user wait? A single cfthread looks like it can send about 2 cfhttp calls/emails a second from our server (and that may be throttled on Amazon's end rather than ours - still looking into that) and that's enough speed for us, though our thread timed out after about 60 seconds (the global request timeout) - I'm assuming we can override this with a <cfsetting> either on the page with the cfthread or inside the cfthread.
Thank you!