Skip to content
Demo code for my linkerd third party talk
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

This is the code for my talk on using linkerd with third-party APIs. It simulates a service (service.go) that calls a third-party API represented by the cloud function.

The cloudfunction simulates a third-party service that takes ~1-4 seconds usually, but can occasionally be faster or much slower. It also 500s 10% of the time.

The top-level service.go is the service itself. It's just calls the cloud function via http and returns how long it took and passes through the http status code from the cloud function.

The stuff in kubernetes/ defines a deployment and service, which are standard. serviceprofile.yaml is a CRD to tell linkerd how to track outgoing connections. It also enables retries, which should make the flaky 3rd party service appear to have close to 100% reliability.

You can’t perform that action at this time.