Skip to content

Remove old Cassandra code and dependencies - #3014

Merged
howardchung merged 2 commits into
masterfrom
remove-cassandra
Nov 23, 2026
Merged

howardchung merged 2 commits into
masterfrom
remove-cassandra

Conversation

@howardchung

Copy link
Copy Markdown
Member

Summary

Removes the legacy Cassandra code, CQL schemas, scripts, Docker services, and cassandra-driver dependency now that player_caches is served by ClickHouse.

Changes

  • Removed dependency: Uninstalled cassandra-driver from package.json / package-lock.json.
  • Deleted Cassandra files:
    • svc/store/cassandra.ts, svc/archiver.ts, svc/cacher.ts
    • sql/init.cql, sql/create_tables.cql, sql/migrations.cql
    • dev/cassandra.sh, dev/wait-cassandra.sh, dev/migrater.ts, dev/legacyArchive.ts
  • Switched player queries & inserts to ClickHouse-only:
    • Removed Cassandra read/write paths and temp cache helpers from svc/util/buildPlayer.ts and svc/util/insert.ts.
    • Removed the ?clickhouse=1 toggle and legacy JS aggregation fallbacks from svc/api/api.ts, svc/api/spec.ts, svc/api/playerFields.ts, svc/util/utility.ts, and global.d.ts.
  • Cleaned up config, monitoring, Docker, dev scripts, and tests:
    • Removed CASSANDRA_URL from config.ts and cassandraUsage from svc/monitor.ts.
    • Removed cassandra / cassandrainit from docker-compose.yml, docker-compose.override.yml, dev/backend.sh, and dev/gce.sh.
    • Updated test/test.ts to drop Cassandra setup/assertions and test ClickHouse endpoints by default.
    • Updated README.md and ecosystem.config.js.

Verification

  • npm run typecheck passes with no errors.
  • Confirmed no remaining Cassandra/CQL references in the repository.

@howardchung
howardchung merged commit 8dfcf65 into master Nov 23, 2026
2 checks passed
@howardchung
howardchung deleted the remove-cassandra branch November 23, 2026 06:53
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