Ask HN: Anyone still doing monolithic Django?
Printing a hello world over kubernetes cluster is an overkill, so are multiple microservices when you do not need them. I loved monolithic django, but with the advent of microservices architecture and modern JS libraries react, vue, and the likes, here is what you got to do
Create a DRF Backend
Take care of authentication at both ends
Build your SPA in a modern JS framework.
The good is modularity, maintainability, better UX controls, super interactive UIs, and the likes, the bad is you need to write more code. In simple cases the good old django templates is good enough. Is anyone still doing them? I love the organised new age FE framework code, the imports that come with ES6.
Is anyone still doing monolith with django template and ES6. If so, mind sharing your workflow, and libraries?
7 comments
[ 3.0 ms ] story [ 19.9 ms ] threadDjango monolithic is still good for fast development and quick MVP release. Also SSR is quite and gives fast page loads
Maybe makes sense for Google, but not for most people working on side projects.
And JS libs like Alpine, Stimulus, or plain old jQuery (as much as people may hate it) give you all the UI interactivity and reactivity you can hope for from the modern frameworks.
It may be a little more explicit and verbose at times, but I'll take that over having to reinvent multiple wheels (Auth, caching, validation, etc) when using DRF+React.
Combined with celery based task queues and the ocassional offloading of simple but time consuming tasks to serverless functions, IMHO there's very little Monolithic django can't do, even at scale.
If your app is monolith, can I ask you to share the link? I'd love to see your turbolonk implementation. Can't wrap my head around it.
https://gitlab.com/danjac/localhub/-/blob/master/localhub/mi...