Git Product home page Git Product logo

Comments (7)

jkarneges avatar jkarneges commented on August 25, 2024

Hi,

The processes don't talk to each other, so when a message is sent it is only pushed to clients connected to the same process. To support multiple processes, you'll need to delegate connection management to a GRIP proxy. See multiple instances and scaling.

If you don't expect tons of traffic, I'd say just use 1 Daphne process.

from django-eventstream.

tboulogne avatar tboulogne commented on August 25, 2024

Hello,

Thanks for your answer. In a first time, i try to use pushpin, butdid not success to make it works on my mac. (message sent to pushpin, bud did not déliver). I will give it a try again.

If you get any tips, you're wellcome :-).

Thanks for all.

from django-eventstream.

kevinswiber avatar kevinswiber commented on August 25, 2024

Hey @tboulogne,

A few items to consider:

  1. Make sure your GRIP_URL points to the Pushpin HTTP Control API.
# default local Pushpin HTTP Control API
GRIP_URL = 'http://localhost:5561'
  1. Make sure your Pushpin configuration has the proper route setup in the routesfile.
* http://localhost:8000

Replace localhost:8000 with whatever your app's <host>:<port> combination is.

  1. Make sure that when you're accessing your site, you're doing so through the Pushpin URL and not the app URL. By default, Pushpin will listen at http://localhost:7999.

Let us know if you have any additional questions!

from django-eventstream.

tboulogne avatar tboulogne commented on August 25, 2024

hey @kevinswiber,

Thanks for insights.

Point 3 mean, that the upstream backend for nginx is pushpin and not daphne ?

from django-eventstream.

tboulogne avatar tboulogne commented on August 25, 2024

@kevinswiber i got a working pushpin :-) !

Bu if face randomly lost connection on some statics files :
image

Any tips to improve this please ?

Thanks for all.

Regards

from django-eventstream.

jkarneges avatar jkarneges commented on August 25, 2024

Weird. Is this easy to reproduce? Can you share the logs from pushpin-proxy.log around the time this happens?

from django-eventstream.

tboulogne avatar tboulogne commented on August 25, 2024

hello,

Sorry for the delay. As i need to progress on this project, i switch back to one instance. But i will take some time and back to you with details.

Could hold this case for now if you want.

Regards.

from django-eventstream.

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.