{
  "id": 22132615,
  "title": "Sending a 50,000-SMS campaign from Laravel without blocking the app",
  "url": "https://urgent.news/2026/11/27/sending-a-50-000-sms-campaign-from-laravel-without-blocking-the-app",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-27T08:00:00.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/hugobachmann/sending-a-50000-sms-campaign-from-laravel-without-blocking-the-app-fg9"
  },
  "original_language": "en",
  "account": "Step 3: dispatch send jobs from the batch's finally() callback The CompileCampaignChunk jobs run inside a Bus::batch and are dispatched via the finally() callback. This ensures that the send jobs are only created after the compile step has completed successfully. By separating the compilation and sending stages, the pipeline avoids waiting for each individual SMS send, which would significantly slow down the application. When the finally() callback executes, it dispatches a SendSmsBatchJob for each 500-message chunk, allowing the app to handle the workload more efficiently.",
  "summary": "Intro A shop owner on Up Review writes a text message, picks a segment and clicks \"Send\". The button answers right away, the dashboard stays usable, and when the last message has left, a notification says the campaign is sent. Behind that click, the biggest campaign so far went to about 50,000 phone numbers, and the average in 2026 is around 20,000. It did not start that way. Our first version…",
  "key_points": [
    "Send jobs dispatched in finally() callback",
    "Compile and send stages separated",
    "SendSmsBatchJob dispatched per 500-message chunk"
  ],
  "editors_take": "Decoupling the compilation and dispatching stages through batch callbacks prevents large-scale messaging tasks from stalling application performance by moving heavy workloads into background processes.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}