tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

Question - how traffic is generated / how to reproduce the results

Open domik82 opened this issue 9 months ago • 3 comments

Hi,

I was looking at lesson 236 / FastAPI (Python) vs Node.js Performance video looked at the code and it seems that the metrics data that is shared in git is only around the application performance.

Can you share how traffic is generated? What tool you use? I couldn't find anywhere information about it.

In Performance Engineering normally there are two variables application metrics and client metrics - frequently those can be different. For example - the application will run out of threads + it's important how many HTTP connections we are using etc. Some of the errors will be visible on client side but app might work as hard as possible.

Is there a way to provide sample terraform deploy of full infra so I could take a look / play with it on my own?

I wanted to use Locust Python tool that I'm familiar with to check how response time would compare with what you used.

domik82 avatar Mar 22 '25 12:03 domik82

Sure, I have all the necessary pieces in this repo, including monitoring stuff. It’s just scattered all over the place. Here is one lesson to monitor a container as an example- https://github.com/antonputra/tutorials/tree/main/lessons/135

antonputra avatar Mar 22 '25 18:03 antonputra

I'll be honest I just started to do my AWS certification journey. While all the different pieces are known to me from on prem infra (python, java , Prometheus etc) - connecting the dots in AWS world takes a bit of time.

My company is giving some free credits for learning purposes. I thought that in long term I could try to replicate your video in my sandbox. It seems there is a lot to capture - setup of entire k8s, ec2 under the hood finally docker services on top.

Is there any chance you could prepare full lesson where all the puzzles would be present in a single folder? I wonder if there is a way to do it in a way that steps could be replicated in gitlab pipeline.

PS. For me it's quite difficult to search repo just by lesson number. It would be great if there would be the video description also in the folder name. So folder 135 would say something more and even semantic search would help.

domik82 avatar Mar 22 '25 19:03 domik82

@domik82 I have all the source code and the commands for this tutorial; I just never had time to actually record it. Also, take a look at the README - https://github.com/antonputra/tutorials/blob/main/docs/contents.md

antonputra avatar Apr 04 '25 19:04 antonputra