java - Server to handle time delayed events -


i'm searching materials/ideas/designs solve architecture problem: i'll have several agents handle processing, result can generate state clients expire after time. let's client sent presence state expire after 1h. wondering how write service keep track of expiration time of scheduled events.

1) create sorted collection timestamps , process executor

2) put db , perform cyclic check using sorted query

any suggestions appreciated.

if using spring framework, can use spring cron http://docs.spring.io/spring/docs/3.0.x/spring-framework-reference/html/scheduling.html


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -