<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shubham Maheshwari</title>
    <description>The latest articles on DEV Community by Shubham Maheshwari (@shubhamlpl).</description>
    <link>https://dev.to/shubhamlpl</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4284749%2F15dc779b-20e2-4004-9e01-e2112f3a3585.jpg</url>
      <title>DEV Community: Shubham Maheshwari</title>
      <link>https://dev.to/shubhamlpl</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shubhamlpl"/>
    <language>en</language>
    <item>
      <title>Your WhatsApp integration works. Will it survive peak hour? Here's how to load-test it</title>
      <dc:creator>Shubham Maheshwari</dc:creator>
      <pubDate>Sat, 05 Dec 2026 12:55:27 +0000</pubDate>
      <link>https://dev.to/shubhamlpl/your-whatsapp-integration-works-will-it-survive-peak-hour-heres-how-to-load-test-it-27pc</link>
      <guid>https://dev.to/shubhamlpl/your-whatsapp-integration-works-will-it-survive-peak-hour-heres-how-to-load-test-it-27pc</guid>
      <description>&lt;p&gt;Your WhatsApp integration passes every test. You send a message, Meta returns a &lt;code&gt;wamid&lt;/code&gt;, a&lt;br&gt;
webhook says &lt;code&gt;delivered&lt;/code&gt;. Ship it.&lt;/p&gt;

&lt;p&gt;Then a customer uploads 50,000 contacts for a campaign. Ten minutes later your queue is stuck,&lt;br&gt;
some people got the message twice, and your logs are full of this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"error"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"message"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"(#130429) Rate limit hit: message throughput exceeded"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"code"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;130429&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;None of that showed up in testing, because none of it &lt;em&gt;can&lt;/em&gt; show up when you test against the&lt;br&gt;
real API with one test number and a handful of messages.&lt;/p&gt;

&lt;p&gt;We hit exactly this while building &lt;a href="https://lakshyapocketlab.com/" rel="noopener noreferrer"&gt;Hello&lt;/a&gt;, a WhatsApp Business API&lt;br&gt;
platform where many businesses send through one system. So we built a fake Meta Graph API that&lt;br&gt;
fails on purpose, and we've open-sourced it:&lt;br&gt;
&lt;strong&gt;&lt;a href="https://github.com/lakshyapocketlab/meta-whatsapp-fake-server" rel="noopener noreferrer"&gt;meta-whatsapp-fake-server&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  How do you load-test the WhatsApp Cloud API?
&lt;/h2&gt;

&lt;p&gt;You load-test the WhatsApp Cloud API by pointing your app at a fake Graph API instead of&lt;br&gt;
&lt;code&gt;graph.facebook.com&lt;/code&gt;. meta-whatsapp-fake-server answers like Meta, enforces the 80 messages per&lt;br&gt;
second limit per number, injects Meta error codes and sends signed status webhooks, so you can&lt;br&gt;
push real load through your system without sending or paying for a single message.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why does scale break WhatsApp integrations?
&lt;/h2&gt;

&lt;p&gt;At ten messages a day, your send path is a function call. At ten thousand a minute, it's a&lt;br&gt;
distributed system:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Meta limits you per number.&lt;/strong&gt; About 80 messages per second per business number by default
(&lt;a href="https://developers.facebook.com/docs/whatsapp/guides/high-throughput" rel="noopener noreferrer"&gt;Meta: throughput&lt;/a&gt;).
Go faster and you get &lt;code&gt;130429&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Messaging tiers cap unique recipients per day.&lt;/strong&gt; New numbers start on a low tier; the
first recipient over it fails with &lt;code&gt;131049&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Meta has bad minutes too.&lt;/strong&gt; &lt;code&gt;500&lt;/code&gt;s, &lt;code&gt;503&lt;/code&gt;s, slow responses, connections that just hang.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Webhooks come in floods.&lt;/strong&gt; Every message produces &lt;code&gt;sent&lt;/code&gt;, &lt;code&gt;delivered&lt;/code&gt; and &lt;code&gt;read&lt;/code&gt;. A 50k
campaign is 150k webhook requests, often batched, sometimes duplicated, and your receiver has
to verify every signature.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The code that handles this ‚Äî retries, backoff, pacing, timeouts, idempotency, fairness between&lt;br&gt;
customers ‚Äî is the code that decides whether you have a good day. And it's the code you've&lt;br&gt;
never actually run.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why can't you load-test against the real WhatsApp API?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Every message costs money and lands on a real phone.&lt;/li&gt;
&lt;li&gt;Meta's own &lt;a href="https://developers.facebook.com/documentation/business-messaging/whatsapp/support/load-testing/" rel="noopener noreferrer"&gt;load testing&lt;/a&gt; runs on real infrastructure, so it can't run offline or in CI.&lt;/li&gt;
&lt;li&gt;You can't ask Meta to return a &lt;code&gt;130429&lt;/code&gt;, a &lt;code&gt;503&lt;/code&gt; or a hung socket when you want one.&lt;/li&gt;
&lt;li&gt;Test numbers start on the lowest tier, so you can't push volume.&lt;/li&gt;
&lt;li&gt;You can't send 5,000 webhooks per second at your own receiver.&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Real WhatsApp Cloud API&lt;/th&gt;
&lt;th&gt;meta-whatsapp-fake-server&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cost per message&lt;/td&gt;
&lt;td&gt;Billed by Meta&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Needs a Meta app, WABA and phone number&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Runs offline and in CI&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rate limit error &lt;code&gt;130429&lt;/code&gt; on demand&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes, at a set rate or percentage&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;500&lt;/code&gt;, &lt;code&gt;503&lt;/code&gt;, hangs and connection resets on demand&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Change conditions in the middle of a test&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes, over HTTP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Webhook load on demand&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Up to 1,000,000 per blast&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Per-number throughput and latency report&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Delivers to real phones&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;h2&gt;
  
  
  What already existed
&lt;/h2&gt;

&lt;p&gt;We looked first. There are good WhatsApp mocks ‚Äî chat-style UIs that let you play the user on&lt;br&gt;
the other end, and canned WireMock/Mockoon definitions. They're great for clicking through a&lt;br&gt;
flow. What we couldn't find was one that &lt;strong&gt;misbehaves like Meta under load&lt;/strong&gt;: rate limits per&lt;br&gt;
number, Meta's real error codes, injected latency, signed status webhooks and a report of what&lt;br&gt;
your app actually did.&lt;/p&gt;
&lt;h2&gt;
  
  
  What is meta-whatsapp-fake-server?
&lt;/h2&gt;

&lt;p&gt;A single Go binary (standard library only, ~3k lines) that pretends to be&lt;br&gt;
&lt;code&gt;graph.facebook.com&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Answers &lt;code&gt;/messages&lt;/code&gt;, media, templates, phone and WABA nodes with Meta's real response shapes.&lt;/li&gt;
&lt;li&gt;Enforces a per-number throughput limit and an optional daily unique-recipient cap.&lt;/li&gt;
&lt;li&gt;Injects Meta errors (&lt;code&gt;130429&lt;/code&gt;, &lt;code&gt;131048&lt;/code&gt;, &lt;code&gt;131056&lt;/code&gt;, &lt;code&gt;131026&lt;/code&gt;, &lt;code&gt;190&lt;/code&gt;, &lt;code&gt;100&lt;/code&gt;), &lt;code&gt;500&lt;/code&gt;/&lt;code&gt;503&lt;/code&gt;,
hangs and TCP resets at whatever percentage you set.&lt;/li&gt;
&lt;li&gt;Adds latency and jitter, globally or for one slow number.&lt;/li&gt;
&lt;li&gt;Sends &lt;code&gt;sent ‚Üí delivered ‚Üí read&lt;/code&gt; webhooks signed with &lt;code&gt;X-Hub-Signature-256&lt;/code&gt;, like Meta.&lt;/li&gt;
&lt;li&gt;Blasts up to a million webhooks at your receiver, with bad signatures and duplicates mixed in.&lt;/li&gt;
&lt;li&gt;Reports throughput per second, p50/p95/p99 latency, errors by code and duplicate sends,
per phone number.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And every one of those knobs can be turned &lt;strong&gt;while the test is running&lt;/strong&gt;, over HTTP.&lt;/p&gt;
&lt;h2&gt;
  
  
  How we use it at Hello
&lt;/h2&gt;

&lt;p&gt;Hello sends for many businesses at once, so one customer's 50k-contact campaign must never&lt;br&gt;
starve another's order confirmations. Before a change to the sending pipeline ships, we run it&lt;br&gt;
against the fake server:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pacing:&lt;/strong&gt; we push far above 80 msg/s and check the server never sees more than the limit
per number.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fairness:&lt;/strong&gt; we make one number slow with per-number latency and check every other customer
keeps its throughput.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Incidents:&lt;/strong&gt; halfway through a run we switch on 30% &lt;code&gt;503&lt;/code&gt;s, then switch them off, and time
how fast the backlog drains.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No double sends:&lt;/strong&gt; we inject connection resets and check the duplicate counter stays at
zero.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Webhooks:&lt;/strong&gt; we blast status webhooks with 2% duplicates and check we store each status once.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It caught bugs our unit tests never would ‚Äî the kind that only appear when a thousand things&lt;br&gt;
happen in the same second.&lt;/p&gt;
&lt;h2&gt;
  
  
  How to set up a fake WhatsApp Cloud API in 5 minutes
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Run it&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run --rm -p 9090:9090 ghcr.io/lakshyapocketlab/meta-whatsapp-fake-server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. Point your app at it&lt;/strong&gt; ‚Äî change only the base URL:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight diff"&gt;&lt;code&gt;&lt;span class="gd"&gt;- https://graph.facebook.com/v21.0/&amp;lt;PHONE_NUMBER_ID&amp;gt;/messages&lt;/span&gt;
&lt;span class="gi"&gt;+ http://localhost:9090/v21.0/&amp;lt;PHONE_NUMBER_ID&amp;gt;/messages&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Any version, any token. If the base URL is hard-coded today, make it an environment variable ‚Äî&lt;br&gt;
that's the only change your app needs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Turn on realistic conditions&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run --rm -p 9090:9090 \
  -e &lt;span class="nv"&gt;FAKE_META_LATENCY_MS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;150 -e &lt;span class="nv"&gt;FAKE_META_JITTER_MS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;150 \
  -e &lt;span class="nv"&gt;FAKE_META_ERROR_RATES_JSON&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'{"130429":1,"500":0.5}'&lt;/span&gt; \
  -e &lt;span class="nv"&gt;FAKE_META_WEBHOOK_URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;http://host.docker.internal:8080/webhooks/whatsapp \
  -e &lt;span class="nv"&gt;FAKE_META_APP_SECRET&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;test-app-secret -e &lt;span class="nv"&gt;FAKE_META_STATUS_CALLBACKS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt; \
  ghcr.io/lakshyapocketlab/meta-whatsapp-fake-server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;4. Drive load through your app&lt;/strong&gt; with k6, Locust, hey ‚Äî whatever you like.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Read the report&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s localhost:9090/_control/stats &lt;span class="o"&gt;|&lt;/span&gt; jq .global
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Five experiments to run this week
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Throughput:&lt;/strong&gt; send 200/s through your app. Does &lt;code&gt;max_observed_msgs_per_second&lt;/code&gt; stay at 80?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hang:&lt;/strong&gt; &lt;code&gt;{"error_rates_pct":{"hang":2}}&lt;/code&gt;. Does your throughput slowly fall to zero? You're
missing a client timeout.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reset:&lt;/strong&gt; &lt;code&gt;{"error_rates_pct":{"reset":2}}&lt;/code&gt;. Is &lt;code&gt;duplicate_wamidless_retries&lt;/code&gt; above zero?
Someone got the message twice.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Outage:&lt;/strong&gt; mid-test, post &lt;code&gt;{"error_rates_pct":{"503":30}}&lt;/code&gt;, then clear it. How long until
the queue is empty?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Webhook flood:&lt;/strong&gt; blast 50,000 mixed webhooks with 1% bad signatures. Does your receiver
reject exactly 1% and stay under 250 ms?
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -X POST localhost:9090/_control/config -d &lt;span class="s1"&gt;'{"error_rates_pct":{"503":30}}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  How to load-test an n8n, Make or AI WhatsApp bot
&lt;/h2&gt;

&lt;p&gt;Not every WhatsApp integration is custom code. Plenty of businesses answer customers with an&lt;br&gt;
&lt;a href="https://lakshyapocketlab.com/whatsapp-business-n8n/" rel="noopener noreferrer"&gt;n8n workflow&lt;/a&gt;, a Make scenario or an AI agent that calls an LLM for&lt;br&gt;
every reply. They break the same way at peak hour.&lt;/p&gt;

&lt;p&gt;Picture it: you send a campaign to 20,000 customers. Every message produces &lt;code&gt;sent&lt;/code&gt;, &lt;code&gt;delivered&lt;/code&gt;&lt;br&gt;
and &lt;code&gt;read&lt;/code&gt; webhooks, and hundreds of people reply in the first few minutes. Your bot now has to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;accept a flood of webhooks fast enough that Meta doesn't give up on them,&lt;/li&gt;
&lt;li&gt;call your LLM for each reply without hitting its rate limit or your budget,&lt;/li&gt;
&lt;li&gt;send replies without going over Meta's per-number limit,&lt;/li&gt;
&lt;li&gt;answer each customer once, even when Meta delivers the same webhook twice.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can rehearse all of that with the fake server:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Swap the trigger.&lt;/strong&gt; In n8n, start the workflow with a plain Webhook node instead of the
WhatsApp Trigger; in Make, use a Custom webhook. The payload is the same shape Meta sends.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Swap the reply.&lt;/strong&gt; The built-in WhatsApp nodes always call &lt;code&gt;graph.facebook.com&lt;/code&gt;, so send the
reply with an HTTP Request node (n8n) or HTTP module (Make) whose base URL comes from a
variable: the fake for tests, Meta for production.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Blast customer messages at it.&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -X POST localhost:9090/_control/webhooks/blast -d &lt;span class="s1"&gt;'{
  "count": 2000, "concurrency": 50, "kind": "message",
  "phone_number_id": "1234567890", "duplicate_pct": 2
}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Read both sides.&lt;/strong&gt; The blast response shows your webhook's status codes and p95 latency;
&lt;code&gt;/_control/stats&lt;/code&gt; shows how many replies your bot actually sent and which errors it hit.
Replies should equal unique messages, not total webhooks.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Then turn the screws: drop the throughput to 10 per second, add 10% &lt;code&gt;503&lt;/code&gt;s or three seconds of&lt;br&gt;
latency, and watch whether replies are retried, lost or doubled.&lt;/p&gt;

&lt;p&gt;One caution: n8n Cloud counts executions and Make counts operations, so a 2,000-message blast&lt;br&gt;
uses 2,000 of them. Run big tests against a self-hosted n8n or a separate test scenario, and use a&lt;br&gt;
cheap model or a stub instead of your production LLM. The full walkthrough is in the&lt;br&gt;
&lt;a href="https://github.com/lakshyapocketlab/meta-whatsapp-fake-server/blob/main/docs/n8n-make-ai-bots.md" rel="noopener noreferrer"&gt;n8n, Make and AI bot guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where can you host the fake server?
&lt;/h2&gt;

&lt;p&gt;Anywhere that runs a Docker container as a long-lived process. It does &lt;strong&gt;not&lt;/strong&gt; run on Vercel,&lt;br&gt;
Netlify or Cloudflare Workers: those are serverless functions, and the server needs memory that&lt;br&gt;
survives between requests and time to send delayed webhooks.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Your laptop:&lt;/strong&gt; &lt;code&gt;docker run&lt;/code&gt; it. To reach it from n8n Cloud or Make, open a free tunnel with
&lt;code&gt;cloudflared tunnel --url http://localhost:9090&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Render:&lt;/strong&gt; the free web service tier runs the image directly. It sleeps when idle, which is
fine for a test session.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Google Cloud Run:&lt;/strong&gt; one instance with CPU always allocated, inside the free allowance for
short tests.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hugging Face Spaces:&lt;/strong&gt; a free Docker Space.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Any VM or Docker host:&lt;/strong&gt; Fly.io, Railway, a VPS or your staging cluster, next to your app.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On a public URL, turn on &lt;code&gt;FAKE_META_REQUIRE_AUTH&lt;/code&gt;, run a single instance and delete it when you&lt;br&gt;
are done. Step-by-step instructions for each are in the &lt;a href="https://github.com/lakshyapocketlab/meta-whatsapp-fake-server/blob/main/docs/hosting.md" rel="noopener noreferrer"&gt;hosting guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to read the load test results
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A flat timeline at the limit means healthy pacing. A saw-tooth means bursts and backoff.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;130429&lt;/code&gt; near zero with the limit on means you pace per number.&lt;/li&gt;
&lt;li&gt;Uneven success counts across numbers mean one tenant is starving the others.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it, break it, tell us
&lt;/h2&gt;

&lt;p&gt;The project is MIT-licensed, a single static binary, and the image is multi-arch with an SBOM&lt;br&gt;
and build provenance.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;‚≠ê GitHub: &lt;a href="https://github.com/lakshyapocketlab/meta-whatsapp-fake-server" rel="noopener noreferrer"&gt;https://github.com/lakshyapocketlab/meta-whatsapp-fake-server&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;üê≥ &lt;code&gt;ghcr.io/lakshyapocketlab/meta-whatsapp-fake-server&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Missing an endpoint or an error code you see in production? Open an issue ‚Äî we'd love to know&lt;br&gt;
how it breaks your system.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Built by the Hello engineering team at Lakshya Pocket Lab. Hello is an official WhatsApp Business API platform with &lt;a href="https://lakshyapocketlab.com/whatsapp-coexistence/" rel="noopener noreferrer"&gt;coexistence&lt;/a&gt; and a &lt;a href="https://lakshyapocketlab.com/partners/" rel="noopener noreferrer"&gt;Partner Programme&lt;/a&gt; for SaaS and B2B companies.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;How do I test a WhatsApp Business API platform before going live?&lt;/strong&gt;&lt;br&gt;
Run your full sending pipeline against a fake Graph API instead of Meta. Change only the base URL to a meta-whatsapp-fake-server instance, drive realistic load through your own API, and inject Meta's rate limits, errors and slow responses. Then read the per-number stats to confirm pacing, retries and webhook handling work.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is there a sandbox or mock for the WhatsApp Cloud API?&lt;/strong&gt;&lt;br&gt;
Meta offers a test number for trying the API, but it sends real messages and cannot fail on demand. For automated and load testing, open-source mocks such as meta-whatsapp-fake-server imitate graph.facebook.com locally, with no Meta account, phone or billing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do I load-test an n8n WhatsApp workflow?&lt;/strong&gt;&lt;br&gt;
Start a copy of the workflow with a Webhook node instead of the WhatsApp Trigger, send replies with an HTTP Request node whose base URL points at meta-whatsapp-fake-server, then use its webhook blast to send thousands of Meta-shaped customer messages. Compare replies sent in /_control/stats with unique messages received.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do I test my WhatsApp AI chatbot under heavy traffic?&lt;/strong&gt;&lt;br&gt;
Point the bot's Graph API base URL at meta-whatsapp-fake-server and blast customer messages at its webhook. Watch webhook latency, LLM rate limits and cost, duplicate replies and Meta's per-number throughput limit. Use a cheap model or a stub for large runs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I host meta-whatsapp-fake-server on Vercel?&lt;/strong&gt;&lt;br&gt;
No. Vercel, Netlify and Cloudflare Workers run short-lived serverless functions, and the server needs in-memory state and a long-running process for delayed webhooks. Run it on Docker locally, Render, Google Cloud Run, Hugging Face Spaces or any VM.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How should my app handle WhatsApp error 130429?&lt;/strong&gt;&lt;br&gt;
Treat it as a signal to slow down, not a failure. Back off and retry later, and pace sends per phone number so you stay under the limit. With the fake server you can force 130429 at any rate and check that every message still goes out exactly once.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is meta-whatsapp-fake-server free?&lt;/strong&gt;&lt;br&gt;
Yes. It is MIT-licensed open source, a single Go binary with a multi-arch Docker image on GitHub Container Registry. It is not affiliated with Meta.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://lakshyapocketlab.com/load-testing-whatsapp-cloud-api/" rel="noopener noreferrer"&gt;Hello engineering blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>whatsapp</category>
      <category>testing</category>
      <category>n8n</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
