Skip to content

v0.22.0

Compare
Choose a tag to compare
@mwhittaker mwhittaker released this 13 Oct 17:55
· 84 commits to main since this release
fd98289

To use v0.22 of Service Weaver, run the following commands in the root of your application's module:

go get github.com/ServiceWeaver/[email protected]                # Update the weaver module.
go install github.com/ServiceWeaver/weaver/cmd/[email protected] # Update the weaver command line tool.

Runtime Graph API Improvements

A Service Weaver application is composed of a directed acyclic graph of components. When you build a Service Weaver application, the component call graph is embedded into the binary itself. In v0.22.0, we improved the API of the bin.ReadComponentGraph function, which extracts and returns the component call graph. Now, bin.ReadComponentGraph returns a fully-fledged graph data structure, which has some helpful graph algorithms that let you do things like iterate over the graph in topological order.

Example Chat App Improvements

The chat app is an example Service Weaver application that is backed by a MySQL database. v0.22.0 includes instructions on how to run the application locally against a MySQL instance running in Docker, and how to run the application on Kubernetes against a MySQL instance running in the Kubernetes cluster. If you want to learn how to write and deploy a database-backed Service Weaver application, the chat app is a great place to look.

Bank of Anthos Example App

We ported Bank of Anthos to Service Weaver.

Bug Fixes

New Contributors

Full Changelog: v0.21.2...v0.22.0