title: Can I set a capacity on the Vert.x HTTP request queue?
body: <p>I have written a Vert.x HTTP server in Java.  When the client sends requests faster than the server can process them, the server-side request queue slowly fills up. Eventually the JVM runs out of memory because of all the accumulating requests.</p>
  
  <p>Can I set a capacity on the Vert.x request queue?</p>
  
  <p>I would like to set one or more of the following:</p>
  
  <ul>
  <li>A maximum number of queued requests</li>
  <li>A maximum size (in bytes) of all queued requests</li>
  </ul>
  
  <p>When either of these limits is violated by an incoming request, I would like to immediately respond with <code>503 Service Unavailable</code>.</p>