search

Home  >  Q&A  >  body text

php - Send 20,000 WeChat template messages at one time

1. The company’s WeChat service account held a reservation event, and nearly two users made reservations. Now we want to send them a scheduled template message.
Our current approach is to send all the messages to be sent to a queue, and then use crontab to run it. It will take a long time to send each message one by one.
So now I want to ask you how to deal with this kind of large-scale sending of template messages.

ringa_leeringa_lee2700 days ago1037

reply all(3)I'll reply

  • 滿天的星座

    滿天的星座2017-07-03 11:42:07

    In laravel, I use redis queue and supervisor to monitor 8 processes, which will be faster

    reply
    0
  • PHP中文网

    PHP中文网2017-07-03 11:42:07

    Use php-resque and open more processes

    reply
    0
  • PHP中文网

    PHP中文网2017-07-03 11:42:07

    2w items are okay. . . It will be sent out soon. . . Just start a process and keep running. . It mainly depends on the frequency limit given by the WeChat interface. Don’t send too fast

    reply
    0
  • Cancelreply