Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server side Tracker.autorun #61

Open
mitar opened this issue Jan 16, 2015 · 4 comments
Open

Server side Tracker.autorun #61

mitar opened this issue Jan 16, 2015 · 4 comments

Comments

@mitar
Copy link

mitar commented Jan 16, 2015

It is crazy that Tracker.autorun does not work on the server side? You can just use it for non-yielding code. So no database queries.

@queso
Copy link

queso commented Jan 16, 2015

I would love to see this work, and with database query support too!

@mitar
Copy link
Author

mitar commented Jan 16, 2015

It seems this package (a bit old) is trying to address this.

@mitar
Copy link
Author

mitar commented Jan 16, 2015

Some related tickets:

It seems MDG is open to the idea, but they have not yet done anything to fully support it, just some basic effort:

@glasser:

(To be thoroughly honest, Tracker is mostly designed for client use, which doesn't have yielding, and while we've done the bare minimum to make it kind of work on the server, the core team has never really sat down and put serious effort into making Tracker truly server native. For example, while it makes sense to have a single global concept of "current computation" on the client, it probably makes less sense on the server, where maybe it should be fiber-dependent or DDP-client-dependent or something. It doesn't necessarily make sense that a slow recomputation for an autorun that is correlated to a specific user connection should affect the performance of an autorun correlated to another user. Hopefully at some point there will be an iteration of Tracker focused on making it truly server-native.)

@mitar
Copy link
Author

mitar commented Jan 18, 2015

I made this package: https://github.com/peerlibrary/meteor-server-autorun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants