DEV Community

Discussion on: Python as a daemon?

Collapse
 
michaelgv profile image
Mike

True, but it doesn’t answer the fundemential question, of which tecchnology is better for the lightweight daemon

Collapse
 
k4ml profile image
Kamal Mustafa

So performance is a concern for you ? Definitely python, depending on what you're doing will take some memory upfront. It easy to take up to 50MB even just for a simple program but at the same time it quite stable. It seldom leak memory (but if it did, quite challenging to troubleshoot). So if by lightweight you mean something that can run in just 1MB or less, definitely not python.

At the same time, all our daemons (processing tasks from database, responding to file system events, processing http webhooks, connecting to tcp socket of external application) are using python with daemontools and it's running fine for years.