Rayman / fusic-meteor

Fusic: Realtime Social Music Collaboration
MIT License
27 stars 12 forks source link

The users collections gets updated too many times #85

Closed Rayman closed 9 years ago

Rayman commented 10 years ago

The user

screenshot from 2014-10-04 10 58 25

pepf commented 10 years ago

Do you have a suggestion on how to create this functionality with fewer updates?

pepf commented 10 years ago

If we would make it completely event based, (so no polling) this might be interesting: http://arunoda.github.io/meteor-streams/

Introducing Meteor Streams Meteor Stream is a distributed EventEmitter across meteor. It can be managed with filters and has a good security model (Inherited from existing meteor security model). You can create as many as streams you want, and it is independent from mongo. With Meteor Streams, you can communicate between client to clients server to clients client to server server to servers

Rayman commented 10 years ago

What maybe could work is the following:

joining a playlist causes you to join a 'message room'. Everyone in that room publishes play/pause/stop events to each other.

The partitioning makes I scale well. I looked into the meteor-stream but you cannot partition users?

pepf commented 9 years ago

We wont be working on the feature specified here anymore right? (close?)

Rayman commented 9 years ago

:+1: