title: Throttling restful actions on a per user basis
body: <p>What is the best approach to throttling the number of actions a user can do to one per minute?</p>
  
  <pre><code>@route('/do_something/&lt;cmd&gt;',method=['GET','POST'])
  def my_command(cmd):
      # Only allow this to be executed once every 60s per user/ip.
  </code></pre>
  
  <p>I am looking for a server side solution, as I want to enforce this based on the users IP-address.</p>