supabase / pg_replicate

Build Postgres replication apps in Rust
Apache License 2.0
596 stars 22 forks source link

consider: use Loco.rs for the API #23

Closed jondot closed 3 months ago

jondot commented 3 months ago

Hi, after reviewing the actix based code for your API, workers, migrations, and scripts, I believe if you move the API to be Loco based (https://github.com/loco-rs/loco) you'll be able to do without the boilerplate/infra code, and gain many more capabilities in the long run. Although Loco is "Rails for Rust", it suffers from virtually no bloat, it's Axum based, and you can compile away parts you don't need using feature flags.

Feel free to close if not relevant 👍

imor commented 3 months ago

We are not focussed on switching the http stack at this moment. I picked actix because I'm most familiar with it. We can reevaluate in future and use Loco if it provides unique benefits over actix.