开发者

Python or Jython for Django based application?

开发者 https://www.devze.com 2023-03-23 23:04 出处:网络
We are going to start developing Django based application. It requires speed optimisation (need to serve k+ requests/sec), n number of nodes with HAproxy and PostgreSQL load-balancing.

We are going to start developing Django based application. It requires speed optimisation (need to serve k+ requests/sec), n number of nodes with HAproxy and PostgreSQL load-balancing.

Presently we consider using

  1. Pyth开发者_Python百科on, Apache, memcached
  2. Jython, Glassfish

The application should scale overtime, Python or Jython. Any suggestion?


Which language you know better?

JVM based languages are faster than Python but any access to data(sql,nosql) is 100X slower than Python or Java.

You will have problems with the database first.

Concentrate on that first.

  • separate frequently changing data from static data
  • be ready to split data/databases
  • think about how to invalidate cache/s

scaling <> language

Rewriting from one language to another isn't very hard. Focus on architecture. Later you can fight with Python/Jython/C++ to reduce 10% of cpu usage because your 1 000 servers produce too much heat.

http://highscalability.com/ there is a lot of Python stories there. I don't know any big service which uses Jython but i think it can be treated as a java.

http://highscalability.com/blog/2011/4/18/6-ways-not-to-scale-that-will-make-you-hip-popular-and-loved.html

0

精彩评论

暂无评论...
验证码 换一张
取 消