Menu

1 / 3

Sending a 50,000-SMS campaign from Laravel without blocking the app

DEV Community: redis·Hugo Bachmann·8 days ago
#h5vYTbqc
#devtoredis#devto#dev#campaign#message
Long article (4123 words) — no AI summary yet.
Reading 0:00
15s threshold

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 sent one SMS per job and slowed the whole application down. This article walks through the pipeline we run today: how we split the work with Bus::batch , why we send 500 messages per HTTP call, how a Redis rate limiter and a dedicated Horizon supervisor keep the CPU flat, and the bugs we only found in production.

TL;DR

Never send from the request. The click debits credits, writes the campaign state and dispatches one job.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.