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

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

  •  
  •   japeth · 14 天前 · 630 次点击

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

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

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