jeffque / canabrava

Uma versão em Bash para a Rinha de Backend 2ª edição

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

canabrava

                           ___.                              
  ____ _____    ____ _____ \_ |______________ ___  _______   
_/ ___\\__  \  /    \\__  \ | __ \_  __ \__  \\  \/ /\__  \  
\  \___ / __ \|   |  \/ __ \| \_\ \  | \// __ \\   /  / __ \_
 \___  >____  /___|  (____  /___  /__|  (____  /\_/  (____  /
     \/     \/     \/     \/    \/           \/           \/ 

Uma versão Bash da rinha do backend 2ª edição 2024/Q1

Requisitos

Stack

  • 2 Bash apps
  • 1 PostgreSQL
  • 1 NGINX

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 em Bash para a Rinha de Backend 2ª edição

License:MIT License


Languages

Language:Scala 63.9%Language:Shell 30.5%Language:Makefile 4.8%Language:Dockerfile 0.9%