title: Python Flask timed queuing script
body: <p>I just started using Flask, and I'm creating a web application that does two main things server side: Accessing another online API (which I can only send so many requests to per second) and sending page requests to a user connecting to the server.</p>
  
  <p>When a user connects to my Flask server, it will send the user's browser a page, then an AJAX script on that page will populate the page with data (this is done for UI performance). This data comes from another API (the League of Legends API), but there is a rate limit set on the number of calls I can make per second, so I must make a queuing script.</p>
  
  <p>Currently, I plan on using a <code>time.sleep()</code> function after every call, but I'm worried that this will prevent the server from doing anything else. I still want the server to be responding to page requests while the API calls are being delayed.</p>
  
  <p><strong>For this, should I use multiprocessing, or does Flask have something built in to handle this? Or should I install a specific plugin for this?</strong></p>
  
  <p>Thanks!</p>