3 ms·
HNSearch consists of a simple javascript webapp hosted at hnsearch.com which sends ajax requests directly to ThriftDB. ThriftDB returns items in the search resp
by andres 15y ago
HNSearch consists of a simple javascript webapp hosted at hnsearch.com which sends ajax requests directly to ThriftDB. ThriftDB returns items in the search response which makes it ideal for this type of architecture. For a more detailed explanation checkout the API docs:
http://www.hnsearch.com/api http://www.hnsearch.com/api
And here's a sample search response from ThriftDB:
http://api.thriftdb.com/api.hnsearch.com/items/_search?q=facebook&pretty_print=true http://api.thriftdb.com/api.hnsearch.com/items/_search?q=fac...
- revorad 15y agoSo is HN data now being stored in ThriftDB? Or is it being replicated on your server? If so, what's the lag?
- andres 15y agoWe wrote a crawler to download data from HN, parse it into JSON, and upload it to ThriftDB. The webapp at hnsearch.com sends requests directly to ThriftDB. There's a ~15min lag between HN and HNSearch.