Oddbean new post about | logout
 nostr:npub1ha2lruw3206t0vvrkum95nwc5vqj5rx4nyssfn3j4mjfwur3x8nsymk5hs But starting a runtime involves some overhead. Did I get it right that you would start a runtime for each request?

I am not familiar with iron though and only tried a recent version of Rocket.

About the hidden runtime: Why do you think that it is hidden? For me, it is very implicit since you annotate your main function with a tokio macro. Maybe because of the macro hiding how the runtime is launched? One can see its equivalence here: https://docs.rs/tokio/latest/tokio/attr.main.html#usage