Better HN
topnewbestaskshowjobs
Log inSign up

yashh

22 karma · joined Jun 3, 2010 (16y ago) · 12 submissions

Submissions

comment 7y ago · link · parent

Any idea if cloudflare supports test networks like rinkeby to start developing?

comment 13y ago · link · parent

No not at all. We already have this problem. Right now we are able to take the DB hit but we will eventually attack this problem from cache perspective. We will have replicated caches for this scenario. In worst case if a shard is overloaded we stop creating new users in it and put it on a dedicated physical machine. I dont think we will let the situation get there.

comment 13y ago · link · parent

We decompose 64 bit ids to shard_id, type and local_id. We connect to the shard go to the table and read the local_id.

We randomly select a shard for a new user only. Ofcourse we capacity plan this and open new shards and even out users eventually.

comment 15y ago · link · parent

Chart.io rocks!! I have used it a while back and the ability to plot a graph by drag and drop interface is just amazing. Highly recommend this.

comment 15y ago · link · parent

Flask is clearly a better framework than bottle. I started with bottle and hit a bug. (https://github.com/defnull/bottle/issues/192). I had to switch to flask to avoid it.

comment 15y ago · link · parent

Totally agree with you. You dont really get 1000's of reqs/sec in a real world environment. All you need is a good server which is fast and memory efficient. Rest of the efforts should be focussed on the webapp side, more importantly DB. If you can work on your IO you will have a fast and efficient application.

comment 15y ago · link · parent

Well I run gunicorn in production with 4 workers so just wanted to give it a try. Also I chose to add network latency by doing it on amazon instance.

comment 15y ago · link · parent

Ok took 30 minutes to run some benchmarks on a AWS instance. I used a small instance run a simple Flask Hello World app with gunicorn (1 worker and 4 workers) and bjoern. Frankly I was not able to fund any speed difference between both the servers. Here is the gist of the benchmark results

https://gist.github.com/753998

comment 15y ago · link · parent

Interesting. I think I am gonna benchmark this against gunicorn with a simple flask app.

comment 15y ago · link · parent

Looks neat.. Mind throwing some light on the backend and technologies (db, framework) you used? I must say that it is really well designed.

11.

AutoComplete with Solr(yashh.com ↗)

2 points · by yashh · 16y ago · discuss