The examples
package holds several examples that demonstrate how the Microbus
framework is used to create microservices. When studying an example, start by looking at the service.yaml
to get a quick overview of the functionality of the microservice. Then go deep into the code in service.go
. All files with -gen
in their name are code generated and can be ignored until you're ready to go deep into the internals of Microbus
.
- HelloWorld demonstrates the minimalist classic example
- Hello demonstrates the key capabilities of the framework
- Calculator demonstrates functional handlers
- Messaging demonstrates load-balanced unicast, multicast and direct addressing messaging
- Event source and sink shows how events can be used to reverse the dependency between two microservices
- Directory is an example of a microservice that provides a CRUD API backed by a database
- Browser is an example of a microservice that uses the HTTP egress core microservice
In case you missed it, the quick start guide explains how to setup your system to run the examples.