Logo
Explore Help
Register Sign In
carrot_bbs/backend
4
0
Fork 0
You've already forked backend
Code Issues 2 Pull Requests Actions Packages Projects Releases Wiki Activity
Files
6bf87fec46bb9ef5763a9a73d5aa7d480d6ec570
backend/internal/config/version_log.go

9 lines
318 B
Go
Raw Normal View History

feat(chat): implement sequence pre-allocation, versioned sync, and push worker Introduce several performance and synchronization enhancements: - Implement `SeqBufferManager` to allow sequence number pre-allocation via Redis Lua scripts, reducing atomic increment overhead. - Add `PushWorker` to handle asynchronous message pushing using Redis Streams. - Implement incremental conversation synchronization via `ConversationVersionLog` to allow clients to fetch only recent changes. - Add support for Gzip compression in WebSocket communications to reduce bandwidth usage. - Update dependency injection and configuration to support these new components.
2026-05-17 23:38:04 +08:00
package config
// VersionLogConfig 版本日志增量同步配置
type VersionLogConfig struct {
Enabled bool `mapstructure:"enabled"`
SyncLimit int `mapstructure:"sync_limit"` // 单次同步最大返回条数
MaxSyncGap int64 `mapstructure:"max_sync_gap"` // 超过此版本差距建议全量同步
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 25.6.2 Page: 63ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API