feat(tournament): federate tournaments across clusters with DB replication
Build & Test (NowChessSystems) TeamCity build failed
Build & Test (NowChessSystems) TeamCity build failed
- Replicate newly created tournaments to all registered remote servers, persisting them with originServerUrl so the remote can proxy mutations back - Route all mutation endpoints (join/start/terminate/withdraw) through originServerUrl when set, instead of trying local state first - Fix tournament event stream to proxy remote tournaments (was 404 before) - Official bot now routes all calls through TOURNAMENT_SERVICE_URL (local tournament service) instead of calling remote cluster directly - Bot parks on local account service + all registered remote servers on startup - Add TOURNAMENT_SELF_URL env var so each cluster knows its own public URL Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -26,6 +26,8 @@ nowchess:
|
||||
prefix: nowchess
|
||||
internal:
|
||||
secret: 123abc
|
||||
tournament:
|
||||
service-url: http://localhost:8086
|
||||
|
||||
"%deployed":
|
||||
quarkus:
|
||||
@@ -49,3 +51,5 @@ nowchess:
|
||||
prefix: ${REDIS_PREFIX:nowchess}
|
||||
internal:
|
||||
secret: ${INTERNAL_SECRET}
|
||||
tournament:
|
||||
service-url: ${TOURNAMENT_SERVICE_URL:http://localhost:8086}
|
||||
|
||||
Reference in New Issue
Block a user