-
Notifications
You must be signed in to change notification settings - Fork 0
Implement internal/broadcaster/send.go (fan‐out UDP) #11
Copy link
Copy link
Open
0 / 10 of 1 issue completedLabels
backendServer-side logic, APIs, and core business functionalityServer-side logic, APIs, and core business functionalitymetricsInstrumentation, telemetry, and collection of usage or performance dataInstrumentation, telemetry, and collection of usage or performance dataserviceMicroservice implementations or service–service integration workMicroservice implementations or service–service integration work
Metadata
Metadata
Assignees
Labels
backendServer-side logic, APIs, and core business functionalityServer-side logic, APIs, and core business functionalitymetricsInstrumentation, telemetry, and collection of usage or performance dataInstrumentation, telemetry, and collection of usage or performance dataserviceMicroservice implementations or service–service integration workMicroservice implementations or service–service integration work
• Maintain an in‐memory map
clients map[string]*net.UDPAddr.• Provide
RegisterClient(clientID string, addr *net.UDPAddr)(initially stubbed/hardcoded).• In a loop, listen on UDP port
:50000. For each incoming Gob‐encodedWorldState:– Decode it.
– For each client in
clients, re‐encode the same buffer (no changes) andWriteToUDPto their address.• Expose Prometheus counter
broadcaster_packets_sent_totaland gaugebroadcaster_client_count.