Package examples
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 manifest.yaml to get a quick overview of the functionality of the microservice. Then go deep into the code in service.go.
- HelloWorld demonstrates the classic minimalist 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
- Browser is an example of a microservice that uses the HTTP egress core microservice
- Login employs authentication and authorization to restrict access to certain endpoints
- Yellow Pages is an example of a SQL CRUD microservice that persists records in a database
In case you missed it, the quick start guide explains how to setup your system to run the examples.