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

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

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

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

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

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