Code Monkey home page Code Monkey logo

Comments (5)

zxq911 avatar zxq911 commented on August 18, 2024

能否给icomet增加一个缓存消息的数据库,redis或者其他的,要允许消息在一定时间内失效,并且被获取。

from icomet.

ideawu avatar ideawu commented on August 18, 2024

你好, 已经增加该功能. 在 comet.conf 配置文件里增加了 channel_timeout 选项, 请将该值改为较大的数(例如1亿), 表示通道的存活时间.

目前, 消息还是不能持久化, 也没有失效时间.

from icomet.

zxq911 avatar zxq911 commented on August 18, 2024

能否将ssdb工程和icomet工程结合起来做,这样既有消息持久化,又可以防止短时间内消息丢失呢。

from icomet.

w22gb8 avatar w22gb8 commented on August 18, 2024

有缓存及过期时间控制,如在过期时间内重复请求会获取重复数据,能否设计为队列形式,获取后从队列内删除。

from icomet.

ideawu avatar ideawu commented on August 18, 2024

@foxconndmd
为了避免重复数据, 需要利用 seq 参数, 重连时, seq = last_seq + 1.

from icomet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.