How much interested would there be in a series of blog posts on how to build a production-ready(ish) API in @rustlang from scratch?
Think database setup, domain layer, API layer, non-functional requirements (logging, tracing, metrics), integration tests, benchmarks, etc.
-
Show this thread
-
Replying to @algo_luca @rustlang
I’d love to see also a discussion of why Rust is a good fit for building an API. I’m also curious to see how ergonomic writing APIs and what are the pain points. E.g. I expect to see many macros to help with ergonomics. Do they cause slow build time?
1 reply 0 retweets 2 likes -
Replying to @mariosangiorgio @rustlang
In a nutshell, I'd say that Rust is an extremely good fit for domain-rich applications - the type system is invaluable when it comes to domain modelling. At the same time, it gives you very predictable performance out of the box (no GC ma!) with low resource usage.
1 reply 0 retweets 3 likes -
In my own experience (using both
@actix_rs and Tide by@_httprs) you do not end up using that many macros, apart from the usual derives for (de)serialisation from Serde and a proc macro to get an async main. Of course your mileage my vary depending on what you are working on :)1 reply 0 retweets 3 likes -
Replying to @algo_luca @mariosangiorgio and
You run into heavy macro usage if you choose Diesel as your ORM, but you pay the price in exchange for many (useful) guardrails. Compile-times do suffer. I measured the impact in a talk I gave a while ago on using Rust for enterprise software https://www.lpalmieri.com/talks/
2 replies 0 retweets 4 likes -
Replying to @algo_luca @rustlang and
That was exactly what I was thinking at :) I’m going to have a look at your talk as soon as I have some time. Thanks for the link
1 reply 0 retweets 0 likes
Just the slides unfortunately, I don't think the recording is out for that one yet.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Writing about stuff to learn how it works, mostly in Rust.
Lead Engineer at