V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Yan_6
V2EX  ›  程序员

网站想要异步发送email,有什么方便的方案吗?

  •  
  •   Yan_6 · 2013-04-16 09:54:34 +08:00 · 4779 次点击
    这是一个创建于 4031 天前的主题,其中的信息可能已经有所发展或是发生改变。
    16 条回复    1970-01-01 08:00:00 +08:00
    nope
        1
    nope  
       2013-04-16 09:56:20 +08:00
    Redis p/b, 另起一个程序去监听.
    Yan_6
        2
    Yan_6  
    OP
       2013-04-16 10:02:57 +08:00
    @nope 能详细一点吗,对Redis不是太熟悉..
    Yan_6
        3
    Yan_6  
    OP
       2013-04-16 10:04:41 +08:00
    @nope google了一下,貌似rabbitmq可以实现
    sillyousu
        4
    sillyousu  
       2013-04-16 10:35:27 +08:00
    python-rq + redis 。

    把耗时间的活都扔给 rq
    Yan_6
        5
    Yan_6  
    OP
       2013-04-16 10:40:20 +08:00
    @sillyousu thx.
    bhuztez
        6
    bhuztez  
       2013-04-16 10:55:38 +08:00
    邮件本来就是异步的...
    yangzh
        7
    yangzh  
       2013-04-16 12:25:34 +08:00
    把邮件内容塞到数据库或者什么地方,写几个脚本或者用 Crontab 来触发发邮件的程序。应该不需要用 rabitmq 这么“重量级”的东西。
    swulling
        8
    swulling  
       2013-04-16 12:30:25 +08:00
    python-rq 简单易用
    jerry
        9
    jerry  
       2013-04-16 12:36:31 +08:00
    用postfix做mta,本身就是异步的
    lookhi
        10
    lookhi  
       2013-04-16 13:07:11 +08:00
    1. 同楼上自己建个发送邮件的队列。
    2. 用现成的邮件队列服务,国外有挺多的。
    Livid
        11
    Livid  
    MOD
       2013-04-16 13:38:24 +08:00 via iPhone
    duhastmich
        12
    duhastmich  
       2013-04-16 17:24:31 +08:00
    刚刚做了个,用的kue http://learnboost.github.io/kue/
    跟rq 应该差不多
    kernel1983
        13
    kernel1983  
       2013-04-16 18:11:37 +08:00
    Yan_6
        14
    Yan_6  
    OP
       2013-04-16 18:58:25 +08:00
    @Lived @duhastmich @kernel1983 感谢各位
    ryancao
        15
    ryancao  
       2013-04-17 09:29:01 +08:00
    也可尝试Sohu的SendCloud或者国外的mailchimp
    edgar51774
        16
    edgar51774  
       2013-04-17 15:05:00 +08:00
    消息队列
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4820 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 10:01 · PVG 18:01 · LAX 03:01 · JFK 06:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.