mirror of
https://github.com/redis/go-redis.git
synced 2025-09-10 07:11:50 +03:00
[CAE-1072] Hitless Upgrades (#3447)
* feat(hitless): Introduce handlers for hitless upgrades This commit includes all the work on hitless upgrades with the addition of: - Pubsub Pool - Examples - Refactor of push - Refactor of pool (using atomics for most things) - Introducing of hooks in pool --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -4,24 +4,6 @@ import (
|
||||
"github.com/redis/go-redis/v9/push"
|
||||
)
|
||||
|
||||
// Push notification constants for cluster operations
|
||||
const (
|
||||
// MOVING indicates a slot is being moved to a different node
|
||||
PushNotificationMoving = "MOVING"
|
||||
|
||||
// MIGRATING indicates a slot is being migrated from this node
|
||||
PushNotificationMigrating = "MIGRATING"
|
||||
|
||||
// MIGRATED indicates a slot has been migrated to this node
|
||||
PushNotificationMigrated = "MIGRATED"
|
||||
|
||||
// FAILING_OVER indicates a failover is starting
|
||||
PushNotificationFailingOver = "FAILING_OVER"
|
||||
|
||||
// FAILED_OVER indicates a failover has completed
|
||||
PushNotificationFailedOver = "FAILED_OVER"
|
||||
)
|
||||
|
||||
// NewPushNotificationProcessor creates a new push notification processor
|
||||
// This processor maintains a registry of handlers and processes push notifications
|
||||
// It is used for RESP3 connections where push notifications are available
|
||||
|
Reference in New Issue
Block a user