• 请不要在回答技术问题时复制粘贴 AI 生成的内容
japeth
V2EX  ›  程序员

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

  •  
  •   japeth · Feb 18, 2025 · 1384 views
    This topic created in 476 days ago, the information mentioned may be changed or developed.

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

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

    japeth
        1
    japeth  
    OP
       Feb 18, 2025
    https://github.com/hibiken/asynq/wiki/Automatic-Failover
    找到了,可以通过集群的方式。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3382 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 12:12 · PVG 20:12 · LAX 05:12 · JFK 08:12
    ♥ Do have faith in what you're doing.