I don't know in detail the implementation of setTimeout in Node.js, but my
first approach would be:

- Assuming the granularity of your TTL is the minute
- Build an object with properties. Each property represent the minute to
expire. And the content of the property is a list of objects that expires
in that minute
- A global timeout of 1 minute, reviewing the next minute/property in such
object.

But I don't grasp your use case.

What is "revalidate an object"? Why you need to do that?

Maybe, there are other options in Node.js world.

Angel "Java" Lopez
@ajlopez



On Sun, Jan 19, 2014 at 12:01 PM, Michael Monashev <[email protected]>wrote:

> Hi.
>
> I  have 10000 objects with TTL (time to live) property. Average TTL is
> 15 minutes. Then TTL expired, I need to revalidate object.
>
> Which way is better: one timer per object or one global timer, what
> revalidate many objects?
>
> --
>  Michael
>
> --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to