Skip to content

cspinetta/distributed-tracing-with-kamon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo for tech talk Distributed Tracing

Stack:

Getting started

The demo is composed by 4 API's: items-api, users-api, sellers-api and front-api. You'll find each one in its own sub folder with a readme and some example requests. The simplest way to run this demo is enter on each api and start it up as its readme indicate. Also you have to start a zipkin and/or a jaeger server for saving and inspecting the generated traces. Then just send some requests to the front-api and go to the tracing server to inspect your traces.

A docker compose with all APIs and traces servers integrated is coming!

Playground

Interesting use cases

Basic example

http 'http://localhost:9070/api/front/search?key-word=robot'

Compose 2 services

http 'http://localhost:9070/api/front/details/item/15/user/5'

The same but in parallel

http 'http://localhost:9070/api/front/parallel/details/item/15/user/5'

Async span

http 'http://localhost:9070/api/front/parallel/details/item/15/user/55'

Fail with 500. Item not found

http 'http://localhost:9070/api/front/parallel/details/item/1500/user/55'

Generate a lot of requests

./generate-requests.sh 1000 2

It will execute 1000 requests with concurrency 2 per each example url.