2.3 KiB
2.3 KiB
Valkey (Redis-Compatible) Messaging Transport for Gateway
Module
Router
Status
IMPLEMENTED
Description
Adds Valkey (Redis-compatible) as a messaging transport option for the Gateway/Router, including DI wiring, HELLO/heartbeat handling, atomic token store, cache factory, and messaging dispatch. Provides a high-performance alternative to the existing messaging infrastructure.
Implementation Details
- Modules:
src/Router/__Libraries/StellaOps.Messaging.Transport.Valkey/ - Key Classes:
ValkeyTransportPlugin(src/Router/__Libraries/StellaOps.Messaging.Transport.Valkey/ValkeyTransportPlugin.cs) - Valkey messaging transport plugin registrationValkeyMessageQueue(src/Router/__Libraries/StellaOps.Messaging.Transport.Valkey/ValkeyMessageQueue.cs) - Valkey-backed message queue with lease supportValkeyMessageQueueFactory(src/Router/__Libraries/StellaOps.Messaging.Transport.Valkey/ValkeyMessageQueueFactory.cs) - factory for creating Valkey message queuesValkeyEventStream(src/Router/__Libraries/StellaOps.Messaging.Transport.Valkey/ValkeyEventStream.cs) - Valkey-backed event stream for pub/subValkeyAtomicTokenStore(src/Router/__Libraries/StellaOps.Messaging.Transport.Valkey/ValkeyAtomicTokenStore.cs) - atomic token operations for idempotencyValkeyCacheStore(src/Router/__Libraries/StellaOps.Messaging.Transport.Valkey/ValkeyCacheStore.cs) - Valkey-backed distributed cacheValkeyConnectionFactory(src/Router/__Libraries/StellaOps.Messaging.Transport.Valkey/ValkeyConnectionFactory.cs) - manages Valkey connections
- Interfaces:
IMessagingTransportPlugin,IMessageQueue,IEventStream,IAtomicTokenStore,IDistributedCache - Source: SPRINT_8100_0011_0003_gateway_valkey_messaging_transport.md
E2E Test Plan
- Register
ValkeyTransportPluginand verify messaging operations work through Valkey - Enqueue and dequeue messages via
ValkeyMessageQueueand verify ordering - Publish and subscribe to events via
ValkeyEventStreamand verify delivery - Verify
ValkeyAtomicTokenStoreprovides atomic compare-and-set operations - Verify
ValkeyCacheStorestores and retrieves cached entries with TTL - Verify connection pooling via
ValkeyConnectionFactoryunder concurrent load