incubator-cassandra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Lipcon <t...@cloudera.com>
Subject Re: python web framework suggestions (for Cassandra Web UI) needed
Date Tue, 13 Apr 2010 20:20:11 GMT
Not going to vote either way, as I haven't contributed to Cassandra in over
a year :) But one quick opinion:

The big downside I see with Django and other WSGI based frameworks is that
it becomes difficult to run "background threads" in a clean way. Someone
mentioned this earlier, but worth repeating: there will be operations that
the management console wants to do that involve talking to all Cassandra
nodes. You will not want to do these for every request - rather it makes
sense to poll nodes in the background and maintain some in-memory data
structure.

I think doing this kind of background monitoring in an async framework like
Tornado or Twisted is likely to be a lot easier. In building Cloudera
Desktop we ran into this issue and separated our health monitoring component
into a twisted service which then exposes data to the Django frontend. Had
Tornado been around when we started the Desktop project we might have
considered it instead.

Thanks
-Todd

On Tue, Apr 13, 2010 at 12:51 PM, Pablo Cuadrado <pablocuadrado@gmail.com>wrote:

> Yes, in the big picture, I guess Pylons has a greater community and
> adoption.
>
> On Tue, Apr 13, 2010 at 4:47 PM, Miguel Verde <miguelitovert@gmail.com>
> wrote:
> > -1 vote for Tornado.  As far as I know, it still doesn't run on Windows
> and
> > has had only 2 releases.  I don't think it makes sense to push that as a
> > dependency to potential deployers of this UI.
> >
> > There are many alternatives with broader platform support and more
> > consistent mainline releases: Bottle, CherryPy, Django, Paste/Pylons,
> > Werkzeug
> > On Tue, Apr 13, 2010 at 2:37 PM, Paul Bohm <bohmps@gmail.com> wrote:
> >
> >> tornado +1 - it's lightweight and has few external dependencies.
> >>
> >> Pylons +4
> >> Tornado +3
> >> Django +1
> >> Undetermined +2
> >>
> >> On Tue, Apr 13, 2010 at 11:29 AM, Ray Slakinski <
> ray.slakinski@gmail.com>
> >> wrote:
> >> > I'll put in a vote for django, you can use managers to handle a lot of
> >> the object code.
> >> >
> >> > Ray Slakinski
> >> >
> >> > On 2010-04-13, at 2:15 PM, Pablo Cuadrado wrote:
> >> >
> >> >> Pylons +4
> >> >> Tornado +2
> >> >> Django +1
> >> >> Undetermined +2
> >> >>
> >> >> Do I smell Pylons? :)
> >> >>
> >> >> On Tue, Apr 13, 2010 at 3:13 PM, Brandon Williams <driftx@gmail.com>
> >> wrote:
> >> >>> On Tue, Apr 13, 2010 at 1:09 PM, Pablo Cuadrado <
> >> pablocuadrado@gmail.com>wrote:
> >> >>>
> >> >>>> Well, so far we are:
> >> >>>>
> >> >>>> Pylons +3
> >> >>>> Tornado +2
> >> >>>> Django +1
> >> >>>> Undetermined +2
> >> >>>>
> >> >>>
> >> >>> +1 for pylons.  I think a more popular framework is likely to have
> >> better
> >> >>> chances of being maintained and avoiding bitrot in the long haul.
> >> >>>
> >> >>> -Brandon
> >> >>>
> >> >
> >> >
> >>
> >
>



-- 
Todd Lipcon
Software Engineer, Cloudera

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message