That's actually pretty interesting. Can you give a few examples that fall out of having a more fine grained (millisecond) resolution?
That's actually pretty interesting. Can you give a few examples that fall out of having a more fine grained (millisecond) resolution?
One advantage to doing this in Redis was that our events aren't just "run a program" (though we can do that); we can also push onto a queue that consumers BLPOP from, or send a pubsub message to a bunch of consumers, or increment counters.
later
Makes you think, it's nice that Redis is minimal, but a core feature that might work really nicely with Redis is timer support.
psubscribe __keyevent@0__:expired cron_*
psetex cron_run-me-in-1s 1000 0Currently keys don't actually really expire from the datastore until someone tries to access it after its TTL runs out. Changing redis so it will actually actively expire keys at the precise time the TTL runs down sounds expensive... but I would love that feature nonetheless.