I'm using Play 2.3.8(activator) & Mongodb as db
I've some products in products collection and each product has expiry date and once its expiry
I need to remove documents in products collection.
I'm planing to write cron job to remove documents in products collection which will run every day at once in particular time.
I'm thinking I can use Annotations like @on, @Every in java(I'm writing code in play java, not play scala). but when I googled i got some plugins or tools or solutions
a) https://github.com/ssachtleben/play-plugins/tree/master/cron
b) Quartz Job schedular as dependency to play 2.3(activator)
c) Akka async jobs(I don't how to use this, how to intigrate with play and even I'm new to Akka)
I'm in confusion state, Could you please suggest me in following
which one I can use for my requirement?
Am I in correct path to do my job?
Is there any thing which will do my job at database level? Thanks in advance.