4 ms·
From my perspective there's little reason to be building html serving webservers these days. 1) Frontend React+Redux paired with an API (eg golang http server
by maerF0x0 8y ago
From my perspective there's little reason to be building html serving webservers these days.
1) Frontend React+Redux paired with an API (eg golang http server serving json)
2) Your boss is going to want "APIs!" soon anyways. le sigh.
3) IMO its as easy to do a JSON API HTTP server in golang as python, but you get typesafety, compiled code and multicore ...
- jnbiche 8y ago> React+Redux paired with an API For building a REST API, there are no frameworks or languages I know of that are easier, quicker, or more user-friendly than Django REST Framework. I say this of someone who is not a big fan of Django in general (although it's not a bad framework). However, I wish that Django REST Framework were build on top of an async HTTP server. Although it's never been an issue, I've occasionally in the past felt uneasy building APIs on top of Django since I know beyond a certain point scaling will be an issue. But either fortunately or unfortunately, I've never had that problem.
- swah 8y agoI'm trying DRF now (last project in Golang) and one point I have no idea which way to go is how to deliver updates to the mobile client (avoiding polling every N seconds). I'm not sure I want to try Django channels, which comes with its own spec (ASGI?) and possibly changes the entire way the Django application is run[1]. Should I go with Django channels or - my alternative idea - deploy a separate Golang server only for "real time updates" ? Then I can send updates by simply POSTing from Django to Golang, which forwards the update to the mobile client. [1] For example: https://channels.readthedocs.io/en/latest/topics/databases.html https://channels.readthedocs.io/en/latest/topics/databases.h...
- collinmanderson 8y agoThere's recent talk of giving Django an async option: https://groups.google.com/d/topic/django-developers/Kw7-xV6TrSM/discussion https://groups.google.com/d/topic/django-developers/Kw7-xV6T...
- swah 8y agoBut then in Goland most people are even against ORMs, so the difference in productivity becomes gigantic. Maybe the pragmatic way is to write a prototype in Django and rewrite in Go once the design stabilizes (I mean, for the smallish stuff I work on..)