Nakago: New Rust API Framework

preview_player
Показать описание
Introducing Nakago, a new Rust API Framework with a focus on async dependency injection in the Tokio ecosystem!

In this video I talk about why I love Rust for backend development, why I created Nakago, what my design decisions are motivated by, and how to get started!

00:00 Introducing Nakago!
04:36 Why Rust?
09:42 Sharp Services
12:05 Solid Foundation
15:27 How Does it Work?
18:38 Wrap-Up

Find me on Discord in the Rust, Go, and Colorado Tech Community servers
Комментарии
Автор

wouldnt it be great to just extract the DI to a separate crate? and without any dependencies to axum ? or tokio? because rust is wild wild west, we can pick other options like actix or smol ... you have the idea of making DI tightly coupled to axum, i know someone before in my team created a DI in flutter which is get_it package, i think its best to really create a separate crate for DI as that would allow anyone to just to pick what backend to use, async or not, thread safe or not... anyway kudos to your work. I might do what im telling now in the comment if i really dont see any DI packages :)

GigachadRustacean-lubo
Автор

Okay, my first impression: you got me hooked and it was interesting to hear about your experience, after a few points I skipped Why Rust as I was aware of the points, so I was happy you had sections marked and well prepared segments, but when we were in the middle of Solid principles, I felt increasingly that you could have shown more, and told less, by e.g. showing an example, what your framework actually solves, or why dependency injection got you into writing this service framework, because the payoff in the last part did not really tell me much about Nakago. Why would I use it over plain axum/tokio? Maybe it would help to pitch a video, where you concentrate on that part - because for me, as someone who knows dependency injection more as a design pattern, than a framework feature, axum's extractors already are dependency injection of sorts. So while I think your viewpoint does not need e.g. knowledge of Django, it seems that your take here does require an insight into nestjs. I can only propose to think about focusing on a presentation about why I should have installed nakago yesterday already into my axum-tokio-project, besides the fact, that it would look cool next to minijinja.

RogerValor
Автор

You triggered my interest with clear and simple presentation !
I totally relate with the nestjs issue about organizing nice language in a more DX oriented tool.
Well, I guess I'll be up for another side project right ? 😅

AlainBoudard
Автор

I am fairly new to rust, but I share the same view, that rust has these pieces but there wasn't a Framework combining them into a unified experience. What you're doing with 中子 here looks promising so far! I'll definitely have an eye on the project :)

頑張って!

OfficialViper