Giter Site home page Giter Site logo

Comments (4)

jrief avatar jrief commented on August 21, 2024

By recycling the code from https://github.com/jrief/django-websocket-redis, this should be quite easy and doable using the key-value store from Redis without its message-queue.

However, in order to get a kind of intermediate responsivness, I always would go for a long polling service in case for some reason you can't run websockets.
Long polling services have the serious drawback in that they don't scale well, since each open GET request blocks one worker. In that case it would probably be better to use an asynchronous framework side by side with Django.

If that answered your question, please close this issue.

from django-angular.

cancan101 avatar cancan101 commented on August 21, 2024

My hope was to be able to have rudimentary three way binding using just django and angular without having to install redis or another process in the server.

from django-angular.

jrief avatar jrief commented on August 21, 2024

In Angular you have a model and your scope. The scope is a POJO and Angular takes care to sync it with your model. If you want to have 3-way data-binding you need a third copy of that object on the server. How would you otherwise sync that data in an asynchronous environment? There is no free lunch for it, so I did it with Websockets and Redis.

from django-angular.

cancan101 avatar cancan101 commented on August 21, 2024

I guess my question is about the feasibility of offering a three data
binding using standard http polling as an alternative to installing redis.
On Jul 8, 2014 12:30 PM, "Jacob Rief" [email protected] wrote:

In Angular you have a model and your scope. The scope is a POJO and
Angular takes care to sync it with your model. If you want to have 3-way
data-binding you need a third copy of that object on the server. How would
you otherwise sync that data in an asynchronous environment? There is no
free lunch for it, so I did it with Websockets and Redis.


Reply to this email directly or view it on GitHub
#79 (comment).

from django-angular.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.