3 ms·
Django Rest Framework for getting services up and running quickly is a godsend. If service needs extra performance then can be rewritten in Golang later.
by varispeed 4y ago
Django Rest Framework for getting services up and running quickly is a godsend.
If service needs extra performance then can be rewritten in Golang later.
- karlosos 4y agoIn what scenarios it would be beneficial to rewrite the Django app in Go? Do you mean something specific when saying that Go would be good replacement?. I/O heavy or computation heavy service?
- chocolatkey 4y agoI actually did to rewrite parts of django's auth, caching in go in order to be compatible with a grpc-based mobile app. The django source code is well documented and easy enough to understand, so it wasn't a probablem signing sessions, creating users etc in go and then using them in django. For django itself, once I slapped a database caching layer on top and tuned gunicorn/uvicorn, there were no performance issues. Go is faster, but django is fast enough.
- winrid 4y agoYou don't need to do a full rewrite usually. Just pull one or two CPU intensive routes out into their own service.