pretzelhammer / kanban

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Source Code for RESTful API in Sync & Async Rust article

This is the companion code repository for the article RESTful API in Sync & Async Rust on my Rust blog.

Servers

Each server implementation is in its own directory.

Server #1: Diesel + Rocket

  • Directory: diesel-rocket
  • Nickname: DR
  • Connection pool: r2d2
  • SQL executor: Diesel
  • HTTP routing: Rocket
  • Compiled with: Rust v1.53 (Nightly)

Server #2: sqlx + actix-web

  • Directory: sqlx-actix-web
  • Nickname: SA
  • Connection pool: sqlx
  • SQL executor: sqlx
  • HTTP Routing: actix-web
  • Compiled with: Rust v1.53 (Nightly)

Server #3: pg-promise + express.js (single-process)

  • Directory: pgp-express
  • Nickname: PES
  • Connection pool: pg-promise
  • SQL executor: pg-promise
  • HTTP Routing: express.js
  • Interpreted with: node.js v16.0.0
  • Mode: single-process

Server #4: pg-promise + express.js (multi-process)

  • Directory: pgp-express-multi
  • Nickname: PEM
  • Connection pool: pg-promise
  • SQL executor: pg-promise
  • HTTP Routing: express.js
  • Interpreted with: node.js v16.0.0
  • Mode: multi-process

Benchmarks

Source code for the benchmarks, and instructions on how to execute them, can be found in the benchmarks directory.

About


Languages

Language:Rust 52.3%Language:JavaScript 33.3%Language:Shell 7.3%Language:Python 4.8%Language:PLpgSQL 2.4%