3

My company is highly dependent on Java and jsf; All projects since I was hired are implemented using them. But most of those projects are facing problems related to performance and availability. So am finally considering a shift to other technologies and I have tried to research in the net, and im about to decide to try python. But before i start i would like to hear ur answer that Python would solve me the performance problems we are facing.

To make things clear the performance problems we mostly face are related to glassfish server and page loading. We are currently using ice faces and have tried wood stock back then. Additionally I can't use .net for some policy related issues. And PHP is also out of question due to some security leaks experienced in earlier projects.

So am expecting to read the pros and cons related with performance and availability in trying to convince my boss and customers in to python.

4
  • 5
    Before you dont know why your existing solution got problems, rewriting it will not help. Commented Jul 11, 2011 at 14:20
  • 2
    Especially don't expect that we can comment on issues without knowing details. You can also write slow code with Python as you can write code and scalable applications using Java. Commented Jul 11, 2011 at 14:22
  • 1
    I think this is the first time I've read someone thinking of switching from Java to Python for reasons of speed. Commented Jul 11, 2011 at 15:00
  • 2
    "related to glassfish server and page loading"? How? What's wrong? What did you measure? Commented Jul 11, 2011 at 15:04

1 Answer 1

6

I have some doubts that you will gain performance by using Django or a Python based solution. I don't know the Glassfish server nor how it scales up but unless badly designed I don't see why it should perform badly.

From the explanation of your performance issues, it doesn't seem to be a problem of language speed but instead, server configuration and availability.

Assuming that your Java code is reasonably optimal (i.e. efficient and acceptably fast), you won't solve the problem by using some Python solution. Instead you should invest some time into studying caching mechanisms and/or proxy solutions.

Depending on how your server is setup, an additional advice would be to let all the static content be served by a dedicated server such as Apache, nginx or similar and only leave the the dynamic content on to be interpreted by your glassfish server.

Since your projects are written in Java you are in theory using a language that can potentially be faster than Python, I don't see why a Python solution would perform better unless there is something wrong with the framework you are using.

If you want to talk about prototyping or faster development, then that's a different subject discussed multiple times on stackoverflow.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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.