/rinha-2024-q1-go

Payments API in Go for concurrency and load testing in Gatling. Solution of a Brazilian challenge.

Primary LanguageScala

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

Go Nginx PostgreSQL

How to run

Pre-requisites:

  • Gatling
  • Docker
  • docker-compose
  1. Enter in the simulation project folder and edit the file executar-teste-local.sh (.ps1 for power shell) to properly use your Gatling installation directory.
  2. Run the script 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.

image