Reputation: 1707
I have some python code which runs every 10 minutes or so. It reads in data, does some processing and produces an output. I'd like to change this so the it runs continuously.
Is python well suited for running as a server (asin running continuously) or would I be better off converting my application to use c++? If I leave it in python, are there any modules you would reccomend for achieving this?
Thanks
Upvotes: 1
Views: 202
Reputation: 10937
Yes it is if you don't need performance server side or if your application is I/O bound. Youtube is full python server side.
A good library to start with is simply the socketserver module from the standard library
http://docs.python.org/library/socketserver.html#socketserver-tcpserver-example
Upvotes: 3
Reputation: 980
Python can use as a server application. I can remember many web and ftp servers written in python. See in threading library for threads.
Upvotes: 1