samedi 19 novembre 2022

How to calculate request TPS?

Hello stackoverflow fam,

I am building one backend service, which upon getting a GET request call, invokes 2 APIs of an external service provider "XYZ".

The entire flow looks like this :

Every 1 hour :

A python data scan job completes it's exection, and then gives a GET call to my API endpoint.

My API service then starts processing the request, and invokes 2 APIs of the "XYZ" service proider, which are :

  1. GetVehicleData
  2. UpdateVehicleData

I only have 1 python job, so my backend service will only receive 1 GET request each hour.

"XYZ" service provider has asked me for request TPS, which should cover the average and worst case.

Based on my calculation :

Worst case TPS : 2 API requests/hour = 48 API requests/ day = 48 API requests / 86400 seconds = 5.55555556×10−4 = 0.000555 = <1

Average case TPS : 2 API requests/hour = 48 API requests/ day = 48 API requests / 86400 seconds = 5.55555556×10−4 = 0.000555 = <1

I wanted to check if I am following the correct approach. Thanks.

Aucun commentaire:

Enregistrer un commentaire