1

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

asked May 5, 2012 at 9:37
1
  • 1
    Have you looked at Google App Engine? It supports python in the back end and requires only minimal set up on your side. Commented May 5, 2012 at 9:45

2 Answers 2

3

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

answered May 5, 2012 at 9:41
Sign up to request clarification or add additional context in comments.

1 Comment

This is a great example of what python can do. Thanks
1

Python can use as a server application. I can remember many web and ftp servers written in python. See in threading library for threads.

answered May 5, 2012 at 9:42

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.