On Wed, Feb 22, 2012 at 15:58, Dimitry Sibiryakov <s...@ibphoenix.com> wrote: > 22.02.2012 14:49, ik wrote: >> I think that at least task scheduler such as the databases I mentioned >> above have, can help a lot in this case, even if we do not have the >> "tmeout record" feature. > > As a developer you, probably, know, that there is no point to invent a wheel > and > duplicate already existing functionality which was proven by time. Every OS > has a > scheduler - cron on *nix and Windows Scheduler on Windows. Why do you suggest > to invent > the wheel?
Cron in unix exists for external programs that require to execute at specific time, instead of making it a daemon. Database as a whole, is a place where you both store data and manipulate it. And some data tasks require to act according to time rules. At the moment, for doing this, you constantly require a daemon and not a cron based program to constantly access the database and change data. That's usually how things start, but usually the requests are starting to have more complex work, and you find yourself with race conditions (data is under lock) etc.. and at the end you need to trigger some sort of event using IPC or RPC to tell something else that the time is up (for example). You constantly copy paste this stuff, and change the logic for a specific case. Wouldn't it be better if there was a better place to do it ? > > -- > SY, SD. Ido > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > Firebird-Devel mailing list, web interface at > https://lists.sourceforge.net/lists/listinfo/firebird-devel ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel