DEV Community

Discussion on: Go Vs Rust what to choose next for web API development

Collapse
 
titusjoyson profile image
Titus Joyson P • Edited

I'm mainly targeting Web API's and In architecture wise microservices and monolithic. I want to drop Node and not Python.

I use python frameworks like Django and Flask for web development where Django ships with pretty much everything that needed for web development and on the other hand Flask is minimal so we may need to add additional libraries to it while developing applications. In both Frameworks and language have the stability to work with.

For Node, I used Express Js for web development it is good and fast but the language and the libraries that come with them are not much stable and for every single thing we need to depend on additional libraries, webpack plugins, etc... and it's single-threaded.

So I started to look for a language that is more robust, stable, multi-threaded and compile-time language.

Collapse
 
rslak profile image
rslak • Edited

I assume you have a UI with SPA like react or angular. For the backend if you are already using Flask or Django, you could continue. If you need pure backend APIs I would avoid Django but stick to micro framework like Flask as it is minimal and does its job well. I have used it in Production under Gunicorn. Flask Works fine. If your business logic is more of a CRUD on a database, any framework is fine. But if you have too much of computations on your business logic in your application layer, then I would rethink on using languages like Rust (Rocket). Otherwise Java, .NET, Python frameworks work fine. Nodejs is also capable and can scale better as long as you don't block CPU cycles