News for hackers. Stuff that matters.
Re:Poll: Pythonic startups: what web framework do you use? by wensing on Thursday March 19, 2009 @11:36AM (#523430)
Would someone that up'd Django please outline their plans to scale?
Re:Poll: Pythonic startups: what web framework do you use? by iamelgringo on Thursday March 19, 2009 @12:22PM (#523527)
Ellington, which is a Django based CMS runs the Washington Post web site: http://www.ellingtoncms.com/

I don't have doubts about Django scaling.

The caching framework is really cool. I did a test a couple of weeks ago, and I got a 10x performance boost, simply by sprinkling 3-4 lines of caching code to my site. That was justing the local memory caching: http://docs.djangoproject.com/en/1.0/topics/cache/#local-mem...

I'd imagine that using a caching back end like memcache would probably give another huge performance boost. It's really pretty straight-forward and usable out of the box.

Re:Poll: Pythonic startups: what web framework do you use? by adrianh on Thursday March 19, 2009 @02:45PM (#523770)
Ellington does not run the entire Washington Post site. A number of specific applications on washingtonpost.com use Django (e.g., projects.washingtonpost.com/congress), but the main site (articles, columns, etc.) does not use Django.

Signed, the guy who introduced Django to washingtonpost.com

Re:Poll: Pythonic startups: what web framework do you use? by wensing on Thursday March 19, 2009 @01:22PM (#523634)
If you're using nginx, you can install the memcache module, which lets you speak directly to memcache and bypass Django's CacheMiddleware altogether.
Re:Poll: Pythonic startups: what web framework do you use? by zepolen on Thursday March 19, 2009 @02:40PM (#523754)
Caching != Scaling
Re:Poll: Pythonic startups: what web framework do you use? by caudicus on Thursday March 19, 2009 @02:48PM (#523776)
So what does exactly equal scaling then?

I'm not disagreeing that scaling isn't only caching, but it's often a component just like anything else. Caching often helps scaling, as do multiple databases, working out bottlenecks in code...whatever else.

Re:Poll: Pythonic startups: what web framework do you use? by zepolen on Thursday March 19, 2009 @03:57PM (#523901)
Scaling = Increasing capacity indefinitely by adding more nodes.

Caching is not scaling because by definition, it depends on a backend to provide it data.

If the backend is a database then sure, you can increase capacity by ~10x (assuming a ~90% cache hit rate), but after that, throwing more caching nodes at the problem won't do a thing if your database itself isn't scalable.

All a cache does is increase speed at decreased costs, but it is not in itself a scaling solution.

Re:Poll: Pythonic startups: what web framework do you use? by thingsilearned on Thursday March 19, 2009 @11:40AM (#523442)
Django scales just like any other web framework. The plan to scale Django is roughly the same as the plan to scale any app.

Are there any issues in particular you're concerned about?

Re:Poll: Pythonic startups: what web framework do you use? by wensing on Thursday March 19, 2009 @11:43AM (#523448)
Have you listened to Cal Henderson's friendly rant against Django from a scalability perspective? http://www.youtube.com/watch?v=i6Fr65PFqfk

For example, did you modify the source to support multiple databases for read/write? Or is that not an issue and it's OK that it's coming later in the framework's roadmap?

Re:Poll: Pythonic startups: what web framework do you use? by ealar on Thursday March 19, 2009 @11:59AM (#523490)
As I see it, if we get enough traffic to be worried about scaling issues we'll deal with it then. Django isn't terribly designed and going in and hacking multi-db and sharding in should take less than a week from a competent developer.

Discussing this before starting a startup sort of feels like trying to figure out how to do salary for hundreds of employees before getting your first one.

Re:Poll: Pythonic startups: what web framework do you use? by wensing on Thursday March 19, 2009 @01:25PM (#523639)
I think it's worth discussing these things in depth. Choosing a web framework for your web company is a serious commitment, isn't it?
Re:Poll: Pythonic startups: what web framework do you use? by ealar on Thursday March 19, 2009 @05:57PM (#524059)
I agree it's worth discussing (especially if you're unsure about future malleability of the web framework to your needs), and I apologize if I was excessively curt.
Re:Poll: Pythonic startups: what web framework do you use? by bdr on Thursday March 19, 2009 @11:17PM (#524442)
We're running multiple databases, live, with the Django ORM. Confirming that it's not very hard.
Re:Poll: Pythonic startups: what web framework do you use? by ealar on Friday March 20, 2009 @04:03AM (#524669)
Ah I knew there was the checkin, I wasn't aware it was currently useable. Thanks for the info, I will have to check it out.
Re:Poll: Pythonic startups: what web framework do you use? by markessien on Thursday March 19, 2009 @11:48AM (#523459)
The framework may not offer it as part of the framework, but there is nothing stopping you from doing it yourself. It's python, it's a database, what's the difficulty here? Django is not the type of framework where you run deep within it and you cannot break out - nothing stops you from doing anything you want to do.
Re:Poll: Pythonic startups: what web framework do you use? by wensing on Thursday March 19, 2009 @12:05PM (#523506)
Of course you're right. Then it's just a matter of assessing the cost of modifying Django vs. another framework.
Re:Poll: Pythonic startups: what web framework do you use? by markessien on Thursday March 19, 2009 @12:42PM (#523574)
What I mean is that you do not need to modify Django. You can just write a routine that duplicates whatever you are writing to the database manually. The Django process is easy to break out of from within your app.
Re:Poll: Pythonic startups: what web framework do you use? by simonw on Thursday March 19, 2009 @12:43PM (#523576)
Django has had low level, undocumented hooks for talking to multiple databases for ages (Malcolm talked about these at DjangoCon, the same conference that hosted Cal's excellent keynote). A very recent checkin makes those hooks easier to use: http://code.djangoproject.com/changeset/10026
Re:Poll: Pythonic startups: what web framework do you use? by wensing on Thursday March 19, 2009 @01:23PM (#523635)
Very cool. Thanks for this insight.
Re:Poll: Pythonic startups: what web framework do you use? by philjr on Thursday March 19, 2009 @11:43AM (#523451)

  * squid reverse proxies
  * memcached
  * low memory footprint httpd serving static content (e.g. nginx / lighttpd etc.)
Re:Poll: Pythonic startups: what web framework do you use? by bobbyi on Thursday March 19, 2009 @12:55PM (#523601)
Why squid instead of varnish?
Re:Poll: Pythonic startups: what web framework do you use? by Barnabas on Thursday March 19, 2009 @01:50PM (#523675)
I didn't know about Varnish so I found the link: http://varnish.projects.linpro.no/. There's commercial support for it too: http://varnish-cache.com/

Thanks for the resource. This will come in handy.