Answer the question
In order to leave comments, you need to log in
What to write a demon on
There is a need to write a demon that will perform various manipulations with databases. Now this is provided by a cyclic call to a php script from bash, which is somewhat crooked (in the sense that such tasks should not be solved in php).
To implement such a task on the pluses, IMHO, bust.
Please advise someone.
So far, apart from Erlang, nothing has come to mind, but it has dynamic typing, which I would like to avoid.
I added Python applicants to the piggy bank, but again, dynamic typing, which I don’t want.
Answer the question
In order to leave comments, you need to log in
What to write a demon on
If you want php - phpdaemon
In general, node.js is a good solution.
If you don't like php, use bash instead. From a simple one, it can also be perl or python.
Need a simple scripting language? Well, try groovy, or something.
Of course, it is not as easy as Javascript, but its typing is very static (only implicit).
php + php_libevent - the best option
if you really need the performance of a daemon, then C / C ++
is a lot of examples on the net
If you definitely need a static language, but not c / pluses, then look towards Java / C #.
Java + Quartz. Time tested! Take only a lightweight container, not JBOSS, it will be easier.
In general, on modern pluses with modern libs (mysql ++), working with a muscle turns out to be just surprisingly pleasant. =)
So on what you know how - on that and write.
Is there any point in an external application?
DBMS support task execution (JOB in Oracle, EVENT in MySQL, etc.)
That means
> different manipulations with databases.
?
Is it recalculation of statistics once per hour? Or accepting user data? That is, the work of a regular website?
Decide on a task. If closer to the first option, then I would choose python - it is very convenient to write, everything works fine.
My task is this: from several suppliers, data is taken in XML form, parsed, added to the database.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question