https://github.com/jonathanperis/rinha2-back-end-k6
Grafana K6 stress tests utilizados pelas minhas implementações da Rinha de Backend
https://github.com/jonathanperis/rinha2-back-end-k6
Last synced: about 1 year ago
JSON representation
Grafana K6 stress tests utilizados pelas minhas implementações da Rinha de Backend
- Host: GitHub
- URL: https://github.com/jonathanperis/rinha2-back-end-k6
- Owner: jonathanperis
- License: mit
- Created: 2025-03-15T22:15:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-18T18:38:39.000Z (about 1 year ago)
- Last Synced: 2025-03-18T19:45:38.709Z (about 1 year ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jonathanperis-rinha2-back-end-k6
This repository contains Grafana K6 stress tests designed for the "Rinha de Backend Segunda Edição". It simulates various backend transactional scenarios including debits, credits, client validations, and error handling.
## Technical Overview
- **Stress Testing with k6**: Implements multiple test scenarios (debits, credits, validations, account statements) to assess the performance and consistency of backend operations.
- **Dockerized Environment**: Includes a Dockerfile to build a custom Docker image integrating a k6 binary compiled with the InfluxDB output extension.
- **CI/CD Integration**: Uses GitHub Actions to automate the build and release pipeline, pushing Docker images for production deployments.
- **Usage Modes**:
- **Dev Mode**: Exports test metrics to InfluxDB.
- **Prod Mode**: Runs tests quietly and generates an HTML report.
- **Project Scope**: This solution is actively used in Jonathan Peris's projects for the Rinha de Backend, showcasing these tests across all his submitted images.
## Getting Started
1. Ensure Docker is installed.
2. Build the Docker image:
```
docker build -t jonathanperis/rinha2-back-end-k6 .
```
3. Run the container in the desired MODE (dev or prod).
## Contributors
- Jonathan Peris (https://github.com/jonathanperis)