Posts

Showing posts with the label Python3

Real time Django

Image
Django When Django was created, over ten years ago, the web was a less complicated place. The majority of web pages were static. Database-backed, Model/View/Controller-style web apps were the new spiffy thing.  Ajax  was barely starting to be used, and only in narrow contexts. The web circa 2016 is significantly more powerful. The last few years have seen the rise of the so-called “real-time” web: apps with much higher interaction between clients and servers and peer-to-peer. Apps comprised of many services (a.k.a. microservices) are the norm. And, new web technologies allow web apps to go in directions we could only dream of a decade ago. One of these core technologies are  WebSockets : a new protocol that provides full-duplex communication — a persistent, open connection between the client and the server, with either able to send data at any time. In this new world, Django shows its age. At its core, Django is built around the simple concept of requests and respo...