Hacker News new | ask | show | jobs
by michaelmior 748 days ago
> The easiest way is to run a Python HTTP server, but the memory usage is too high. We need a more lightweight solution, so I used xmlrpc for memory efficiency

Doesn't XML-RPC operate over HTTP?

1 comments

It does, but I used Flask previously for comparison, so I came to that conclusion.
It seems like you've already proved your conclusion false though if you ended up using an HTTP server anyway. The conclusion seems to be that Flask wasn't suitable for the task.
You are right, the conclusion should be revised to: "I ended up using an HTTP server anyway, but I choosed the more efficient one", because Flask's http server is for testing only. Sorry for the unclear. I think using a Unix Socket could be more efficient but I don't want to be over-engineering :)