Skip to content

FluxGate Redis 0.3.8

Choose a tag to compare

@rojae rojae released this 17 Nov 17:39
· 250 commits to main since this release
670b70c

FluxGate Redis 0.3.8

Overview

This maintenance release replaces Redis KEYS with cursor-based SCAN in FluxGate’s built-in standalone and cluster providers.

KEYS can block Redis while it examines the keyspace, delaying unrelated requests. SCAN performs the enumeration incrementally, reducing the work performed by each command. This release prioritizes operational safety for existing 0.3.7 users.

Release scope

Only io.github.openfluxgate:fluxgate-redis-ratelimiter is released as 0.3.8. FluxGate Core, the parent POM, and Spring Boot starters remain at 0.3.7. This release does not include the broader 0.5.0 changes.

Public API signatures, Redis key formats, and existing reset patterns are preserved. No Redis data migration is required.

Upgrade

Add or update the Redis dependency explicitly, even when using a FluxGate starter:

<dependency>
    <groupId>io.github.openfluxgate</groupId>
    <artifactId>fluxgate-redis-ratelimiter</artifactId>
    <version>0.3.8</version>
</dependency>
implementation 'io.github.openfluxgate:fluxgate-redis-ratelimiter:0.3.8'

Keep Core and the starter at 0.3.7, and check the resolved dependency graph to ensure Redis 0.3.8 is selected.

Operational considerations

  • Redis ACL: The application identity must be allowed to execute SCAN on the relevant primary nodes. There is no fallback to KEYS if permission is denied.
  • Concurrent changes: SCAN is not an atomic snapshot. Concurrent key changes or cluster topology changes can affect results. Stop matching writers when an exact reset boundary is required.
  • Memory: The list-returning API retains matching keys in memory. SCAN reduces per-command blocking but does not make a full keyspace traversal constant-time.
  • Custom implementations: The existing Java keys(...) method name remains for compatibility; built-in implementations now use SCAN. Direct Redis calls in applications and custom providers are outside this patch’s control.

Validation

  • 154 Redis module tests passed with no failures or skipped tests using isolated standalone and three-primary Redis fixtures.
  • Java 11, 17, and 21 verification passed.
  • Public API signatures matched the published 0.3.7 artifact.
  • Artifact checks verified both built-in SCAN paths and rejected direct Lettuce/Lua KEYS calls. This static check does not cover arbitrary reflection or external custom code.

Rollback and security

To roll back, pin the Redis module to 0.3.7 and redeploy. This restores the former blocking KEYS behavior and its operational risk.

This is an operational reliability patch, not a comprehensive security update. Existing dependency versions remain unchanged and require separate security assessment.

References