V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
japeth
V2EX  ›  程序员

请教一下 asynq 如何保证任务的不丢失?

  •  
  •   japeth · 19 小时 6 分钟前 · 335 次点击

    github 仓库地址: https://github.com/hibiken/asynq

    asynq 使用的是 redis ,那么如果 redis 宕机,除非设置 aof 的配置为 always ,那么可能有一秒的数据会丢失。

    japeth
        1
    japeth  
    OP
       18 小时 36 分钟前
    https://github.com/hibiken/asynq/wiki/Automatic-Failover
    找到了,可以通过集群的方式。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   964 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 19ms · UTC 21:50 · PVG 05:50 · LAX 13:50 · JFK 16:50
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.