Task Init

This commit is contained in:
teslim
2025-02-11 15:06:41 +01:00
parent 0241fcc579
commit f52cec4cf1
1718 changed files with 91042 additions and 5 deletions
+2 -2
View File
@@ -60,13 +60,13 @@ Your task is to extract the high-throughput ticket purchasing component (inspire
Simulate high load using a tool like [autocannon](https://github.com/mcollina/autocannon) or [wrk](https://github.com/wg/wrk). For example, to simulate 2000 concurrent connections on event 1:
npx autocannon -c 2000 -d 30 http://localhost:3000/buy/1
npx autocannon -c 2000 -d 30 http://localhost:3049/buy/1
### Metrics
Access real-time service metrics at:
http://localhost:3000/metrics
http://localhost:3049/metrics
These metrics should include data on tickets sold, remaining tickets per event, and any instances where the fallback mechanism was activated.