Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1.74 KB

README.md

File metadata and controls

34 lines (26 loc) · 1.74 KB

Solution for a Brazilian Challenge called Rinha de Backend - 2024/Q1

A payments API challenge validated by Gatling with concurrent operations and a 500 requests/s peak. You can find more information about the challenge here.

Stack

Java Spring PostgreSQL Nginx

How to run

Pre-requisites:

  • Gatling
  • Docker
  • docker-compose

Clone both repositories using git clone:

  • Java solution: https://github.com/jpcairesf/rinha-2024-q1-java
  • Simulation project: https://github.com/zanfranceschi/rinha-de-backend-2024-q1

Enter in the simulation project folder cd rinha-de-backend-2024-q1 and edit the file executar-teste-local.sh (.ps1 for power shell) to properly use your Gatling installation directory.

Inside the simulation project folder, run the containers and the Gatling simulation using docker-compose -f ./../rinha-2024-q1-java/docker-compose.yml up -d && sh executar-teste-local.sh

Constraints

Some constraints were applied to guarantee a fair and more competitive scenario to the challenge.

  • 1.5 CPU to distribute between the containers
  • 550 MB of memory to distribute between the containers
  • Must be able to run in AMD64 architecture

Results

Test results will be generated in the simulation project rinha-de-backend-2024-q1/load-test/user-files/results. Open the index.html file.