Skip to content

Comment on Ask HN: Best Python web framework

Comments

Try Brubeck. It's a Python web framework built around Gevent, DictShield and ZeroMQ. It communicates with Mongrel2, it's web server, via ZeroMQ sockets so even the annoying design of WSGI is moved out of the way.

It converts your blocking calls to nonblocking, has no spaghetti code filled with callback shenanigans, and can even generate a full REST API for you.

https://github.com/j2labs/brubeck

I have used Pylons, Tornado and Brubeck in my projects over last couple of years and I must say if you are an experienced developer in Python, brubeck is a very good candidate. It is built for scalability in mind from day one. It is very light weight from code perspective and has a very transparent design which is very easy to understand to dive deeper if you need to.

As the initial author of Brubeck, I'm very glad to hear this!

Yes, Brubeck is awesome. What irritates me is this benchmark. https://gist.github.com/882555

>Availability: 99.98 %

>Failed transactions: 2

I am guessing Brubeck runs solid now. But that benchmark was done 5 months ago and it's still advertised on this page. http://brubeck.io/readme.html

I see. I will update. This test was also performed with Eventlet and I found Eventlet to occasionally fail requests.

I have since switched over to Gevent and the performance is significantly better than Tornado now. I will update this test very soon to demonstrate.

Updated: https://gist.github.com/882555 - Same URL as on http://brubeck.io/readme.html, but with new data I just finished collecting.

Cool. Interesting discussion on the latest benchmark.

https://groups.google.com/forum/?fromgroups#!topic/brubeck-d...

Agreed! I am happy to have such smart people helping us develop the system

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.