Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

Demo code for my linkerd third party talk

Resources

Releases

No releases published

Packages

No packages published