Home  >  Q&A  >  body text

How to send asynchronous HTTP request in Django View?

Scenarios such as: sending a welcome text message after the user successfully registers, but does not want to become a synchronous one or use RabbitMQ celery, I wonder if there is something similar to the asynchttpclient in tornado Such a function because there are no non-http request tasks.

伊谢尔伦伊谢尔伦2686 days ago912

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-05-19 10:09:24

    In fact, asynchronous queue is the best way, it is fully decoupled and the code is easy to maintain

    I usually use Celery + Redis

    reply
    0
  • PHP中文网

    PHP中文网2017-05-19 10:09:24

    The easiest way to start a thread is using therading

    reply
    0
  • Cancelreply