News for hackers. Stuff that matters.
Re:Ask HN: Modern stacks and frameworks for fast web app dev... by kisamoto on Sunday May 05, 2013 @12:00PM (#5658729)
I like my FAM stack;

Flask - run on Pypy for extra speed and great for rapid development of APIs; AngularJS - client side Javascript templating for great single page app; MongoDB - Fast. Schemaless. Returns almost straight JSON to Angular from Flask.

Nginx sits in front, initially serving the HTML page to load the Angular page which pulls its data from the backend API.

Easy to drop in a Memcache/Varnish caching layer and everything can scale effectively.

The isolated nature of VirtualEnvs allows this to be installed on almost any Linux server and to have many different websites running on the same machine.

Re:Ask HN: Modern stacks and frameworks for fast web app dev... by Goranek on Sunday May 05, 2013 @12:07PM (#5658768)
Did you benchmark pypy + flask? Any numbers compared to cpython?

And whats your whole setup? flask -> pypy -> ?? -> nginx ?

Re:Ask HN: Modern stacks and frameworks for fast web app dev... by kisamoto on Sunday May 05, 2013 @03:04PM (#5659355)
I'm yet to benchmark it but I'll run some ApacheBench and post them up in the next week.

And sorry - the missing link there is uWSGI. Found it to be much more stable and configurable than Gunicorn. Also did some load testing which required a lot of Async stuff (waiting for unreliable external APIs to respond...) and Gunicorn just fell over.

Re:Ask HN: Modern stacks and frameworks for fast web app dev... by Goranek on Sunday May 05, 2013 @03:14PM (#5659393)
Async with pypy? I though pypy still doesn't support greenlets?

What did you use for async calls?