Skip to content

infra: drop redis container — RedisService was unused (HOL-22) - #101

Merged
BrewingCoder merged 1 commit into
mainfrom
issue-22-drop-redis
May 9, 2026
Merged

infra: drop redis container — RedisService was unused (HOL-22)#101
BrewingCoder merged 1 commit into
mainfrom
issue-22-drop-redis

Conversation

@BrewingCoder

Copy link
Copy Markdown
Owner

Summary

RedisService was registered in DI as a singleton but no code path actually injected it. Pure dead infrastructure: a container, a port, a persistent volume, and a StackExchange.Redis package dependency carrying their own footprint with zero callers.

Removed

  • src/dotnet/src/HoldFast.Shared/Redis/{RedisService, RedisOptions}
  • src/dotnet/tests/HoldFast.Shared.Tests/Redis/
  • HoldFast.Shared.csproj: StackExchange.Redis package reference
  • Program.cs: Redis DI registration + using
  • compose.yml: redis service + redis-data volume
  • compose.hobby-dotnet.yml: Redis__Configuration env mapping
  • .env.example: REDIS_IMAGE_NAME, REDIS_PASSWORD
  • env.sh: REDIS_EVENTS_STAGING_ENDPOINT exports

Net

8 files changed, +4 / -163 lines (basically just config-comment additions vs full Redis cleanup).

Forward-compat

If a future code path actually needs caching:

  • Self-hosted scale → IMemoryCache (in-process)
  • Multi-node scale → re-add Redis as a hobby/comfy-tier opt-in

Verified

  • docker compose ps now shows 6 HoldFast containers (was 7 after HOL-21).
  • Smoke test (./infra/docker/smoke-test-ingest.sh) passes end-to-end.

Stacks on #100. Subtask of HOL-17. Closes HOL-22.

🤖 Generated with Claude Code

@BrewingCoder
BrewingCoder changed the base branch from issue-21-drop-collector to main May 9, 2026 14:39
RedisService was registered in DI as a singleton but no code path
actually injected it. Pure dead infrastructure carrying its own
container, network port, persistent volume, and StackExchange.Redis
package dependency.

Removed:
- src/dotnet/src/HoldFast.Shared/Redis/{RedisService, RedisOptions}
- src/dotnet/tests/HoldFast.Shared.Tests/Redis/
- HoldFast.Shared.csproj: StackExchange.Redis package reference
- Program.cs: Redis DI registration + using
- compose.yml: redis service + redis-data volume
- compose.hobby-dotnet.yml: Redis__Configuration env mapping
- .env.example: REDIS_IMAGE_NAME, REDIS_PASSWORD
- env.sh: REDIS_EVENTS_STAGING_ENDPOINT exports

If a future code path actually needs caching, IMemoryCache (in-process)
covers self-hosted scale; users at multi-node scale can re-add Redis
explicitly.

Verified: docker compose ps now shows 6 HoldFast containers (was 7
after HOL-21). Smoke test passes end-to-end.

Stacks on HOL-21. Subtask of HOL-17. Closes HOL-22.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@BrewingCoder
BrewingCoder force-pushed the issue-22-drop-redis branch from c674278 to d5e907d Compare May 9, 2026 14:42
@BrewingCoder
BrewingCoder merged commit bc2d329 into main May 9, 2026
4 checks passed
@BrewingCoder
BrewingCoder deleted the issue-22-drop-redis branch May 9, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant