-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
35 lines (35 loc) · 2.2 KB
/
package.json
File metadata and controls
35 lines (35 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"name": "nodejs-services-under-load-lab",
"version": "1.0.0",
"private": true,
"description": "Self-study Node.js microservices lab focused on load scenarios and resilience",
"main": "index.js",
"scripts": {
"dev": "concurrently -k -n services,workers,dashboard \"npm run services\" \"npm run workers\" \"npm run dashboard\"",
"services": "concurrently -k -n experience,deal,price,inventory,ratingA,ratingB,ratingLB,merchant \"RATING_SERVICE_URL=http://localhost:3014 ENRICHMENT_CONCURRENCY=220 HYBRID_READ_MODEL_ENABLED=true READ_MODEL_STALE_MS=180000 READ_MODEL_TTL_SECONDS=300 READ_MODEL_LIVE_FALLBACK_MAX=1 READ_MODEL_REFRESH_COOLDOWN_MS=10000 BASE_DEALS_CACHE_TTL_MS=5000 node services/experience-api/server.js\" \"node services/deal-service/server.js\" \"node services/price-service/server.js\" \"node services/inventory-service/server.js\" \"PORT=3004 INSTANCE_ID=a node services/rating-service/server.js\" \"PORT=3006 INSTANCE_ID=b node services/rating-service/server.js\" \"PORT=3014 LB_TARGETS=http://localhost:3004,http://localhost:3006 node services/rating-lb/server.js\" \"node services/merchant-service/server.js\"",
"workers": "concurrently -k -n enrichment,critical \"ENRICHMENT_WORKER_CONCURRENCY=120 READ_MODEL_TTL_SECONDS=300 node workers/enrichment-worker.js\" \"node workers/critical-worker.js\"",
"dashboard": "node services/slo-dashboard/server.js",
"load:deals": "node tools/load.js --target=http://localhost:3000 --duration=30 --concurrency=50 --mode=deals",
"load:enqueue": "node tools/load.js --target=http://localhost:3000 --duration=30 --concurrency=20 --mode=enqueue",
"load:mixed": "node tools/load.js --target=http://localhost:3000 --duration=30 --concurrency=50 --mode=mixed"
},
"engines": {
"node": ">=20"
},
"dependencies": {
"@opentelemetry/auto-instrumentations-node": "^0.57.1",
"@opentelemetry/sdk-node": "^0.57.1",
"@opentelemetry/sdk-trace-base": "^1.30.1",
"bullmq": "^5.41.9",
"chart.js": "^4.4.7",
"concurrently": "^9.1.2",
"express": "^4.21.2",
"ioredis": "^5.4.2",
"p-limit": "^3.1.0",
"pino": "^9.6.0",
"pino-http": "^10.3.0",
"prom-client": "^15.1.3",
"undici": "^6.21.0"
},
"license": "MIT"
}