0

I just started with Meteor app development and have a use case which I am not sure is good for meteor.

We have a java application that pushes data to redis at a very fast rate (data updates in less than 50 milliseconds) and we are building a web application (on NodeJS) which connects to this redis instance and sends the data to the client. For now (with native NodeJS app), we are sending data only twice a second (as we do not require such fast updates).

My question is, how can I achieve the same with Meteor? As we know Meteor has live-query which will tend to send data as soon as it changes, but this is not optimum for us. Is there a way to tune live-query to send data say only after a certain time?

Thanks

Sohail
  • 4,506
  • 2
  • 38
  • 42

1 Answers1

1

I think you are looking for ways to throttle meteors calls. This could be done with this library.

This issue has been also discussed here. Reading up on it I think they still haven't implemented it in core. This would make sense since there are no out-of-the-box throttling mechanisms in node or iojs.

Hope this was helpful.

Community
  • 1
  • 1
eljefedelrodeodeljefe
  • 6,304
  • 7
  • 29
  • 61
  • Thanks @Jefe Your links look promising but I am not sure if thats what I want. You see, my use case is - Some other application updates the Redis Server, and I want to send the updates from Redis using Meteor every 50 milliseconds or so. Hence, I don't need to throttle any request coming to the server, but instead the server should push updates at a throttled rate! – Sohail Mar 02 '15 at 04:55