Documentation
¶
Overview ¶
This 'embed' example demonstrates how to use the loader package to manually construct a loader.Footprint with resource allocations that link three components together - ping, pong and probe.
These components communicate over Kafka pub-sub topics, just like production-ready service executables.
For simplicity, run all components in a single executable:
go run github.com/danielorbach/go-component/examples/embed
To simulate a real deployment, run each component in its own executable:
- To run the only Ping component, use the '-ping' flag.
- To run the only Pong component, use the '-pong' flag.
- To run the only Probe component, use the '-probe' flag.
Click to show internal directories.
Click to hide internal directories.