Wednesday, October 6, 2010

Nerot - Flexible Java Scheduling and Caching

Just did the initial import of Nerot to Github. If you're looking for a fast and flexible Java scheduling library that is easily extensible and that has built-in support for RSS retrieval, calling any method (static or instance) on any Java object, in-memory caching, then check it out!

It's primary immediate purpose for me to make keeping RSS feeds up-to-date (which it grabs via Rome) without even having to wait on retrieval possible. This is done by scheduling (via Quartz, Spring, and dynamic Spring bean creation) update of the feed and always retrieving the feed that is cached in-memory and never making the client wait when they attempt to get the feed.

This also means that it is an unreliable caching mechanism, i.e. if it has not been retrieved before in-memory, then it won't be there when you ask for it.

At first this might seem to have limited application, but, if you think about it, most of the time an almost immediate response is better than waiting for a response because the cache expired, so why should the cache ever expire? So, it doesn't, and you never have to wait for a refresh since it is done in the background.

No comments: