Upgrade to Pro — share decks privately, control downloads, hide ads and more …

HTTP routing with Linkerd

Borys Pierov
December 08, 2017

HTTP routing with Linkerd

A practical example of routing HTTP traffic with Linkerd

Borys Pierov

December 08, 2017
Tweet

More Decks by Borys Pierov

Other Decks in Programming

Transcript

  1. $ man ncbi NAME NCBI – National Center for Biotechnology

    Information DESCRIPTION World’s go-to place for biomedical and genomic info HISTORY Building software since 1988 ENVIRONMENT Hybrid on-premises & multi-cloud Over 3K services Serving 7K RPS EXAMPLES PubMed, GenBank, PMC, BLAST
  2. service │ works w/ │ containers & w/o │ │

    │ ┌───┴────┐ ┌┴┐ $ http_proxy=linkerd:4140 curl http://foo.l5d.ncbi.nlm.nih.gov └──┬──┘ └────────┬─────────┘ │ │ /etc/hosts │ │ │ │ convention
  3. service │ │ ┌┴┐ $ curl –H “Host: foo.l5d.ncbi.nlm.nih.gov” http://linkerd:4140

    └────────┬─────────┘ └──┬──┘ │ │ │ │ long domain names phobia │ /etc/hosts
  4. /http => /#/rinet/80 /http => /$/domainToPath /gov/nih/nlm/ncbi/l5d => /service /service

    => /#/consul/.local /service/foo => /service/foo-1 /service/bar => /service/bar-1 /service/baz => /service/baz-1