title: Rate-limiting my program from sending too many SES emails via SQS
body: <p>I want to send 10000s of individual mails at once; possibly from a large <code>for</code> loop:</p>
  
  <pre><code>for user in _10000_users:
      msg  = generate_message( user)
      if(ses.can_send_more_messages == False):
          sleep( 0.1) #to throttle ourselves
      ses.send_message( msg)
  </code></pre>
  
  <p>But I am worried about the <strong>70 mails/second throttle</strong> on our SES account. So I want my program to respect this limit by <strong>inspecting the queue</strong> and wait if it has exceeded the limit and sending again only if its clear.</p>
  
  <p>I am using boto in Python to interface with SQS. And I expect only a single machine to send messages, although in future multiple machines may send messages in parallel being ignorant of each other.</p>
  
  <p>How can I do rate-limiting of emails to 70 per second by inspecting the queue or using a Python-specific technique?</p>