Skip to content

leandronsp/agostinho

Repository files navigation

agostinho

   __    ___  _____  ___  ____  ____  _  _  _   _  _____ 
  /__\  / __)(  _  )/ __)(_  _)(_  _)( \( )( )_( )(  _  )
 /(__)\( (_-. )(_)( \__ \  )(   _)(_  )  (  ) _ (  )(_)( 
(__)(__)\___/(_____)(___/ (__) (____)(_)\_)(_) (_)(_____)

Uma versão Ruby bastante modesta da rinha do backend 2ª edição 2024/Q1

Requisitos

Stack

  • 2 Ruby 3.3 +YJIT apps
  • 1 PostgreSQL
  • 1 NGINX

Ruby é lento????? So far, so good

agostinho-gatling

Usage

$ make help

Usage: make <target>
  help                       Prints available commands
  start.dev                  Start the rinha in Dev
  start.prod                 Start the rinha in Prod
  docker.stats               Show docker stats
  health.check               Check the stack is healthy
  stress.it                  Run stress tests
  docker.build               Build the docker image
  docker.push                Push the docker image

Inicializando a aplicação

$ docker compose up -d nginx

# Ou então utilizando Make...
$ make start.dev

Testando a app:

$ curl -v http://localhost:9999/clientes/1/extrato

# Ou então utilizando Make...
$ make health.check

Unleash the madness

Colocando Gatling no barulho:

$ make stress.it 
$ open stress-test/user-files/results/**/index.html

ASCII art generator

About

Uma versão Ruby bastante modesta da rinha de backend 2ª edição 2024/Q1

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published