Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leandronsp/canabrava
Uma versão em Bash para a Rinha de Backend 2ª edição
https://github.com/leandronsp/canabrava
Last synced: 9 days ago
JSON representation
Uma versão em Bash para a Rinha de Backend 2ª edição
- Host: GitHub
- URL: https://github.com/leandronsp/canabrava
- Owner: leandronsp
- License: mit
- Created: 2024-02-08T00:55:55.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-03-06T12:51:01.000Z (9 months ago)
- Last Synced: 2024-04-14T22:53:40.100Z (7 months ago)
- Language: Scala
- Size: 38.1 KB
- Stars: 33
- Watchers: 2
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# canabrava
```
___.
____ _____ ____ _____ \_ |______________ ___ _______
_/ ___\\__ \ / \\__ \ | __ \_ __ \__ \\ \/ /\__ \
\ \___ / __ \| | \/ __ \| \_\ \ | \// __ \\ / / __ \_
\___ >____ /___| (____ /___ /__| (____ /\_/ (____ /
\/ \/ \/ \/ \/ \/ \/
```Uma versão Bash da [rinha do backend 2ª edição](https://github.com/zanfranceschi/rinha-de-backend-2024-q1) 2024/Q1
![Screenshot 2024-03-06 at 09 49 42](https://github.com/leandronsp/canabrava/assets/385640/4f0ae566-dce5-46f7-a65e-a6cc45350082)
## Requisitos
* [Docker](https://docs.docker.com/get-docker/)
* [Gatling](https://gatling.io/open-source/), a performance testing tool
* Make (optional)## Stack
* 2 Bash apps
* 1 PostgreSQL
* 1 NGINX## Usage
```bash
$ make helpUsage: make
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
```bash
$ docker compose up -d nginx# Ou então utilizando Make...
$ make start.dev
```Testando a app:
```bash
$ curl -v http://localhost:9999/clientes/1/extrato# Ou então utilizando Make...
$ make health.check
```## Unleash the madness
Colocando Gatling no barulho:
```bash
$ make stress.it
$ open stress-test/user-files/results/**/index.html
```----
[ASCII art generator](http://www.network-science.de/ascii/)