Newer
Older
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Website Translation Service
Provides API that can be used to create, manage website translation integrations and request translations
## Terminology
`translation system` - source language + target language + domain
## Architecture
```
----------------------------------- --------------------------------
| | | |
| Translation system service | → → → | Database |
| | ← ← ← | |
----------------------------------- --------------------------------
↓
↓
↓
↓
↓
↓ Request text translations if not cached
↓ -----------------------------------
↓ | |
→ → → → → → → → → | Text Translation service |
↓ | |
↓ -----------------------------------
↓
↓
↓
↓ Request available systems for validation
↓ -----------------------------------
↓ | |
→ → → → → → → → → | System service |
| |
-----------------------------------
```
<!--
# Monitor
## Healthcheck probes
https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
Startup probe / Readiness probe:
`/health/ready`
Liveness probe:
`/health/live` -->
# Test
Using docker compose
```
docker-compose up --build
```
## Benchmark
### Vegeta
```ps1
# Install vegeta
go install github.com/tsenart/vegeta@latest
# Run benchmark
vegeta attack -targets=vegeta_translate -format=http -duration=30s -rate=500 --output results.bin
vegeta report -type=text results.bin
vegeta plot results.bin > plot.html
```
### k6
```ps1
# influx v2 output plugin
xk6 build --with github.com/grafana/xk6-output-influxdb
./k6 run script.js --vus 800 --duration 30s -o xk6-influxdb=http://localhost:8086
```