Any advice on choice of #Rust web #backend #framework?

I'm considering #Actix and #Axum, and like the look of #Salvo but am new to this so any comments from experience would be helpful.

I'll be creating a localhost API server which will wrap my #RustLang lib and give local apps a way to talk to a p2p storage system. So a custom API for some things, one for #rclone, possibly #WebDAV.

Thoughts?

@happyborg you come to the right place I have

https://ozkanpakdil.github.io/microservicetests/2024-11-01-microservice-framework-test-21.html

simple benchmark between rust java and dotnet 🤓 anyway long story short axum looks fastest

https://github.com/ozkanpakdil/rust-examples/blob/main/axum-rest-api/src/main.rs

you can see other folders for different examples, warp is the second best 🤓 but these are just numbers, just follow your heart and share us which made you feel like home 😇

Java microservice framework tests in SB:3.3.4 Q:3.8.1 M:4.6.0 V:4.5.9 H:4.1.3 Dotnet:6 openjdk version "21.0.4" 2024-07-16 LTS rustc 1.81.0 (eeb90cda1 2024-09-04)

In Linux fv-az1153-265 6.5.0-1025-azure #26~22.04.1-Ubuntu SMP Thu Jul 11 22:33:04 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux,Below is total package generation ...

@thejvmbender Thanks! Looks handy. Did you document your benchmarks anywhere?

I'm not sure speed will be a big issue for me yet as the bottleneck will likely be the p2p network, but would be handy to have some idea of the difference.

@happyborg
looks like I wrote about it in 2020
https://dev.to/ozkanpakdil/microservice-comparison-40b8 but not very detailed.

Before rust era for me, it is simple http request test, just json serialize, in last tests(since 2023) I am sending 32k requests with #gatling and preparing those graphs from the response results. If you check the details of the requests, you see I use "mean response time"

In time I bring Kotlin and GraalVM then rust came than dotnet lately I am thinking to bring django or any python framework but I am lazy lately

you can see the brain here https://github.com/ozkanpakdil/test-microservice-frameworks/blob/main/runGatling.sh

microservice comparison

Hi @all I have developed a small test/benchmark system for all microservice frameworks out there, and...

DEV Community