Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
j2labs
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
121.
▲
by
j2labs
15y ago
It's backwards. HTTP is the weaker of the two transports, though tried and true. Mongrel2 can used to proxy HTTP to ZMQ nicely. Check these slides for an overview of all the things ZMQ can do: http://j2labs.tumblr.com/post/5036176531/zerom
122.
▲
by
j2labs
15y ago
I don't like the idea of everything using HTTP. I prefer ZMQ. There is a substantial work done to process all the HTTP overhead. In addition to that there is no load-balancing included and it would likely be delegated to a whole new service
123.
▲
by
j2labs
15y ago
This test is for a pointlessly weak concurrency level of 25. Under serious load the difference is much more gigantic showing that Twisted can't handle the same load as gevent.
124.
▲
by
j2labs
15y ago
Will be awesome to see more of what we get from pypy. Eventlet will probably gain a lot too, for those with a taste for the implicit eventloop.
125.
▲
by
j2labs
15y ago
Agreed! I am happy to have such smart people helping us develop the system
126.
▲
Quickness: Get your ubuntu boxes up fast.
(github.com)
1 points
by
j2labs
15y ago
|
0 comments
127.
▲
by
j2labs
15y ago
Updated: https://gist.github.com/882555 - Same URL as on http://brubeck.io/readme.html , but with new data I just finished collecting.
128.
▲
by
j2labs
15y ago
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
129.
▲
by
j2labs
15y ago
As the initial author of Brubeck, I'm very glad to hear this!
130.
▲
by
j2labs
15y ago
There are very few Tornado compatible async drivers, so I don't believe it is a simplification.
131.
▲
by
j2labs
15y ago
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 c
132.
▲
by
j2labs
15y ago
Don't use Tornado unless you plan to build a full SOA. Python drivers are blocking by default and Tornado offers no support for that, meaning Tornado blocks if you have database calls in your code. Use gevent. Huge community. Simply works a
133.
▲
by
j2labs
15y ago
I know the rage is async & nonblocking, but putting Python behind Apache is a good way to get predictable performance without concerns for calls that block, since they're mitigated via threads. Also, it helps to have money since this ap
134.
▲
by
j2labs
15y ago
jsonschema has been around for a long time too.
135.
▲
by
j2labs
15y ago
My mom told me about this company before HN. She loves it. They're definitely doing something right.
136.
▲
Do Some Business Models Perform Better than Others?
(ccs.mit.edu)
2 points
by
j2labs
15y ago
|
0 comments
137.
▲
by
j2labs
15y ago
You, my friend, have made excellent points and I yield to you now. I hope this conversation is informative for readers.
138.
▲
by
j2labs
15y ago
That's entirely dependent on what the work being done is. It's typical for gevent users to use the built-in queue systems to pass messages between coroutines, similar to Erlang's actor model. I do t believe a lot of work would be required i
139.
▲
by
j2labs
15y ago
Gevent wasn't designed for multicore because it doesn't exist today. It's fair to assume some work would have to be done to continue using it safely. Edit: Solve the problems you actually have.
140.
▲
by
j2labs
15y ago
> The weakness of callbacks is the lack of multicore support. You suggest that gevent won't work in preemptive environment if it wants to support multiple cores, alas I'm still not convinced as to why. The greenlets are cooperatively sc
141.
▲
by
j2labs
15y ago
This link is flawed. It points towards eventlet but gevent is significantly better. Not sure why Ted felt otherwise, but I speculate that it's because at the time of writing gevent was considered incomplete compared to eventlet. To be clear
142.
▲
by
j2labs
15y ago
http://nichol.as/benchmark-of-python-web-servers
143.
▲
by
j2labs
15y ago
> The main problem I see with gevent/eventlet is it has many of the weaknesses of callback and preemptive threaded code with none of the strengths. It is intended to create an environment similar to preemptive threads, yet due to it bei
144.
▲
by
j2labs
15y ago
Or just use gevent or eventlet. It's not necessary to use a whole different branch of python. On top of that, gevent outperforms both twisted and tornado because the eventloop is libev, meaning it's written in C instead of pure python.
145.
▲
by
j2labs
15y ago
Record labels are determined to teach us piracy is the way to acquire music. Fools...
146.
▲
by
j2labs
15y ago
It has nothing to do with the location.
147.
▲
by
j2labs
15y ago
Just use a settings file. I use settings overrides by putting local_settings.py in my .gitignore and then adding this to the bottom of my settings.py: https://github.com/j2labs/microarmy/blob/master/settings.py#...
148.
▲
by
j2labs
15y ago
Because you want people outside your rolodex too. :)
149.
▲
by
j2labs
15y ago
Python hackers should check out NLTK, if they don't already know it.
150.
▲
by
j2labs
15y ago
Very clever move to let his clients know they should keep tabs on him. It advertises his integrity and informs people he's leaving.
More ›