Challenge 3e: Even More Efficient Broadcast!

desccode

Built on our already efficient broadcast, just cranked up the efficiency by, waiting longer? Yeah, turns out sometimes being lazy is the smart move.

What Changed

literally just bumped the sync interval to 1s from 500ms. that's it. no fancy algorithms, no complex napkin math, just:

ticker := time.NewTicker(time.Second)

How it Works (Even Better)

Even More Batching

Same principle as before but better:

Perf Numbers

Still with 25 nodes and 100ms latency:

Why This Works Better

  1. More Patient Batching: Waiting longer = bigger batches = fewer messages

  2. Still Good Timing: 1s interval hits an even sweeter spot

  3. Same Simple Code: Didn't have to add any complexity

  4. Free Performance: Got better numbers by doing less work

Trade-offs

Pros:

Cons:

Sometimes the best optimization is just tweaking a number. there's probably fancier ways to do this with topology optimization or smart gossip protocols, but if it works, it works... And this definitely works. also, happy new year from time of writing.