Model: 3 types of latency

July 27th, 2022

(1) network latency

the time to make a call over the network

eg. it takes 200ms to call that service

 

(2) security latency

eg. your token expired and you need to re-authenticate

 

(3) data latency

eg. you need to query a database

 

Total latency

Total latency is the sum of these parts.

eg. I need to call another microservice to get it's data

  1. network latency - my microservice get's a call

  2. security latency - my microservice authenticates the call

  3. data latency - my own database query

  4. network latency - call another service

  5. security latency - the other service verifies my token

  6. data latency - the other microservice queries it's database