I have unified the organizations for scale pourpus...
# support
z
Hy vapi support team, I hope this email finds you well. I built my company with vapi and we are scaling for over a year now. In the beginning, I was all built with no-code platforms for mvp, once we scale, we need to figured out hot to make the onboarding and customer experience more autonomous. Knowing that, we thought about the mult tenant table on out database, where we can manage all our clientes in one single organization, and now, automate account creations, assistant configurations and stuff like that. That process of migration from no-code to html + cURL api was about 3 weeks ago, but suddently we realized that we have concurrency call limits applied for organizations, not for accounts... That really scared me once we spent the lat month transitioning our entire software to this new mult tenant sistem. So now, my question is: 1. How does it works that concurrency limit and how is that applied? 2. How the big applications using vapi deal with that limit? 3. If I had chosen to create our software using vapi python or node.js aplication, was that concurrency be a problem? 4. Can someone guides me with that transition? I really hope someone helps me with that problem soones possible because it will be a huge problem soon.
v
To handle Vapi's organization-level concurrency limits as you scale, implement a call queue using Twilio and Redis. This lets you queue excess calls and process them as capacity becomes available. Here’s a Node.js code snippet to trigger queue processing when a call ends:
Copy code
js
// Handle Vapi end-of-call webhook
app.post('/vapi-webhook', async (req, res) => {
  const message = req.body.message;
  if (message && message.type === 'end-of-call-report') {
    await decrementActiveCalls();
    setImmediate(() => processQueue()); // Process next call if capacity allows
  }
  res.status(200).send('OK');
});
This approach ensures you never lose calls and can scale smoothly as your customer base grows. For full details, see the [Vapi call queue management guide](https://docs.vapi.ai/calls/call-queue-management). Source: - [Call queue management with Twilio](https://docs.vapi.ai/calls/call-queue-management)
4 Views