Documentation
¶
Overview ¶
Package main demonstrates Tee lockstep fan-out behavior.
A single upstream feeds a Tee with two branches: one fast (5ms) and one slow (50ms). Because Tee is lockstep, every item must be accepted by both branches before the next can flow. The slow branch dictates throughput.
Run:
go run ./examples/tee-demo/ go run ./examples/tee-demo/ -reverse
Click to show internal directories.
Click to hide internal directories.