/rinha-2023

A challenge on Bun

Primary LanguageTypeScript

Rinha 2023

This code is based on a challenge that was proposed here (pt-br). But Basically it is a HTTP API for person, and the challenge was to see how many requests and inserts the API could handle on a Stress testing. Still optimizing the performance, but wanted to make my own version using Bun (even though the challenge is long finished), based on this JS project.

Running the stress testing from the first link, but the workflow of it with the implemented here is as follows:

flowchart TD
    G(Stress Test - Gatling) -.-> LB(Load Balancer - Nginx)
    subgraph Your application
        LB -.-> API1(API - instance 01
        In this case Bun) 
        LB -.-> API2(API - instance 02
        In this case Bun)
        API1 -.-> Db[(Database)]
        API2 -.-> Db[(Database)]
    end
Loading

To run:

make