You are on page 1of 13

Performance Testing

Microservices
Experience Report

TOOP, TAV 45, 06.11.2020

David Faragó, EclipseSource & QPR


Contents
Performance 1 second more
⇒  11% fewer page views
KPIs ⇒  7% fewer conversion
●  service-oriented
○  response time (s)

○  availability (%) most important: perception by user


○  error-rate (%)

●  efficiency-oriented
○  throughput (Hz)
○  utilization (%)
Performance Tests
Stress Load Endurance

Web Load Test

Scope Inside Out Middle In Outside In

Entry Point 1.0 1.5 2.0


Test Execution

●  create (increasing) load ●  manual (UX) tests

●  measure KPIs ●  run other tests

●  compute statistics ●  observe tests, logs, monitoring


Test Execution Demo Via Locust (Python)
•  Layer 1 User profiles
•  Layer 2: Journeys
●  create (increasing) load
•  Layer 3: Transactions

●  measure KPIs Infrastructure:


•  Docker Locust master

●  compute statistics •  Docker Locust exporter


•  Helm Service (Monitor)

via Grafana and Prometheus:


•  store
•  compute
•  visualize
Create Load via Locust: User Profiles
Create Load via Locust: Journeys

...
Create Load via Locust: Transactions

...
Measure KPIs: Docker Infrastructure
Measure KPIs: Helm Service (Monitor) Infrastructure
Compute Statistics via Grafana
References

You might also like