instruction
stringlengths
4
105
output
stringlengths
8
56.7k
Hey hackers how many hours do you sleep?
trickjarrett: As many as I can fit so long as I'm up by 6am. Usually 6-7ish.
Hey hackers how many hours do you sleep?
mikeyur: Depends on the day, usually 6-8 and sometimes a 1-2 hr nap that day as well.
How do I handle a million hits a minute?
davidw: That's a lot of traffic. To handle that dynamically would probably cost you a pretty penny, even with really fast code (Apache/nginx/whatever modules in C, for instance). What are you trying to do, exactly?My laptop can pump out a static page at about 4000 requests per second. A million requests per minute i...
Hey hackers how many hours do you sleep?
entrez: 5-8. 2+ hours of exercise a day enables better concentration for longer periods imho.
How do I handle a million hits a minute?
ErrantX: I've been looking at something similar (not on that scale admittedly) recently.Either I would go with a generic cloud service to host on (which should scale to handle your hits) such as EC2. Butthe cost could be astronomical.Or you could go with something like 3tera & the custom cloud solutions and make your o...
Review our startup - BeatMyPrice.com
bengtan: Uh, presuming the technology works and your data is good quality, how do you monetise this?
Hey hackers how many hours do you sleep?
ideamonk: 4-6
How do I handle a million hits a minute?
mseebach: The biggest issue, from what I can read, will be how well the data is partitioned. If every single write will affect every single subsequent read in a non-trivial manner, it's a really hard problem, and you're looking at really expensive hardware.If you're able to partition the data, it's "just" a question of...
How do I handle a million hits a minute?
jwilliams: Theoretically possible I guess. The current TPCC holder is 6million transactions per minute (mixed workload). But, that was on some, er, serious hardware: http://www.tpc.org/tpcc/results/tpcc_result_detail.asp?id=10...I've personally seen 1000+ tps systems (60,000 tpm), but these were all big iron environmen...
How do I handle a million hits a minute?
newsit: As the other guys said it all depends from your situation and what you are trying to do. One thing to maybe look at is Erlang and related technologies Mnesia, Yaws etc. This is a comparison of Apache vs. Yaws under heavy load: http://www.sics.se/~joe/apachevsyaws.html
How do I handle a million hits a minute?
swombat: Without much knowledge of the specifics it's hard to come up with a plausible solution, but here are some ideas:* Push off as much of the processing as possible onto the client. Ideally, the browser has a javascript library that deals with all the rendering/updating/etc, and just passes stuff to the server as ...
How do I handle a million hits a minute?
gaius: How much work can you do in the other 23 hours? Can you be asynchronously writing from an in-memory cache to a real database during that time? Or pre-computing anything? During that hour, how much (if any) data can you afford to lose in the event of a problem? How much data per transaction as we talking about? D...
How do I handle a million hits a minute?
andr: I'd try to build a microsharding system. Depending on the amount of data you want to store, go for 256 or 65k virtual shards and allocate a few shards on each DB server. A hash of the key will give you its shard and it's easy to keep a shard map in memory.I'd advise going with BDB or whatever key-value store is f...
How do I handle a million hits a minute?
gsiener: Let me guess, you'll be capturing data about where people are browsing in real time?
How do I handle a million hits a minute?
owkaye: Wow, I was writing a reply to davidw's first post when lots of new posts arrived in this thread. Thanks to all of you! I haven't read any of your new posts yet but I will as soon as I submit this one:The concept is a live interactive system with 100,000+ members online, logged in, and actively posting for abou...
How do I handle a million hits a minute?
charlesju: If your web application idea is super easy, maybe you should just throw it onto Google App Engine or something and let them handle it.
SAAS distribution network & face-to-face support.
rgrieselhuber: 1. I would definitely recommend spending as much time getting to know your distributors as possible. Ideally, they will come through references of people that you actually know and trust. Once you have identified some candidates, get something on paper so there are no disagreements, make sure you specify...
How do I handle a million hits a minute?
SingAlong: Process Queing would be the best way to solve your problem. If you are processing a million hits a minute then you might need more than one comp/server. So if you are using databases consider using Facebook's Cassandra project(which is a distributed storage system) for your database needs. This would suit y...
How do I handle a million hits a minute?
owkaye: Here are my answers / comments to some of the recent posts (more replies to come). Thanks again to everyone for your help and please keep your suggestions coming:to swombat: The clients will have javascript so short commands rather than entire pages can be passed. Thanks for this suggestion, implementing this ...
Hey hackers how many hours do you sleep?
hapless: An actual poll from a few weeks ago: http://news.ycombinator.com/item?id=328901
How do I handle a million hits a minute?
khangtoh: After reading through all the other replies, I'm really interested in seeing suggestions on the search and sorting operation that needs to be done with every write.Realizing that if the query returns a huge number of records, sorting and feteching those records will be THE bottleneck.
How do Flickr, Youtube and other high traffic websites handle file uploads?
stillmotion: I'm not entirely sure about them, but I use S3 and EC2 with SQS so that the user can upload the file, it will be encoded while waiting in a queue, then place itself back into storage. That way nothing ever touches my production server.
How do Flickr, Youtube and other high traffic websites handle file uploads?
bprater: Sniff around the Amazon S3/EC2 documentation and you'll find pipelines demonstrating what you want to do, such as:http://developer.amazonwebservices.com/connect/entry.jspa?ex...
How do Flickr, Youtube and other high traffic websites handle file uploads?
mdasen: So, what you want to do is stream the file to disk. The problem that most people will face is that someone is uploading a 100MB video file and your code is trying to hold it in memory. Bad! Get it on disk, then deal with it by opening the file.In terms of a daemon, you don't need one. PHP and other language...
How do I handle a million hits a minute?
owkaye: Retric said if I provide data that's accurate +/- .2 seconds that's close enough, but he's wrong (sorry Retric, it's not your fault). The fact is, I must provide each member with the relative position of his post each time he makes one, and the only way I know to do this is to append the new record first, and ...
How do Flickr, Youtube and other high traffic websites handle file uploads?
ars: You are mistaken and it's not true. If your site is php, let php handle the uploads.
How do Flickr, Youtube and other high traffic websites handle file uploads?
staunch: One really easy way that works extremely well is to use an old school CGI script to handle the upload. It will die as soon as the upload process is finished, which keeps things very self contained and clean.The most important thing (as others have noted) is that you do processing asynchronously. Get the file o...
How do Flickr, Youtube and other high traffic websites handle file uploads?
mlLK: Here are some interesting stats in how much data 4chan handles on any given day while the upstream might not quite compare to something of the likes of Flickr or Youtube, but from what I can tell while software is certainly important it is your hardware that will make or break whether or not your site can handle ...
How Much Can I Scrape?
ca98am79: what kind of data do you want? real-time? or end of day? If you just want end of day data, it is simple. Just write a script that collects it in the middle of the night and stores it in your database. I don't think they mind at all if you just do it once a day for all of the stocks - I know people who have...
What's your Twitter rank?
jfarmer: A friend of mine who is an engineer at Google wrote this up. It uses Real Math(tm), so it calculates your TwitterRank by taking into account how you interact with other Twitter users.Mine is 17.2, which surprises me.
What's your Twitter rank?
brk: Why does it need a password? twitter.grader.com does essentially the same thing, but doesn't require a password. I'm not sure what additional data the author gets by using the Twitter API vs. just looking at the public info (I can't think of any part of my Twitter stats that aren't publicly available)
How do Flickr, Youtube and other high traffic websites handle file uploads?
ezmobius: Use this nginx module: http://www.grid.net.ru/nginx/upload.en.htmlIt is highly scalable and spools the uploads to disk and does the mime parsing in efficient nginx C code> then once it finishes it just passes some params to your backend processes with the location of the file on disk and you can process it ho...
How do I handle a million hits a minute?
iigs: Sorry for replying to the root, this thread is kind of a mess, with stuff scattered everywhere. Here's what I think:What you're asking to do is very hard for anything beyond simple static page retrievals. Tiny mistakes in schema design (let alone architecture) could make or break your site.Get expert architecture...
How do Flickr, Youtube and other high traffic websites handle file uploads?
jdavid: so for the most part i don't think i can answer in detail, but in public situations hi5's response has been that they have a dedicated pool of servers running the upload, and they store the file on a static server. once that server fills up, they provision a new one. i will call this the viking image upload p...
How do Flickr, Youtube and other high traffic websites handle file uploads?
eax: one of the Flickr engineers, cal Henderson, wrote a book with a title something like "building scalable websites" that was published by O'reilly. I'm pretty sure he covers that topic. You may be able to get acces online via your public libraries web site (you can in seattle, at least).There are the obvious issue...
ASK HN: Google account disabled. Oh what to do?
hbnickcarter: Just had an exact repeat episode…account disabled. I my case its because there was a security issue with Google Checkout…the worthless redundant buying service that I signed up for to get 10% off some gear. What a fool. The Googlesphere is inherently evil and here’s why. They promote trust that lures user...
How do Flickr, Youtube and other high traffic websites handle file uploads?
tzury: If you plan to deploy your client application as an HTTP application then there isn't much you can do other than let your web application handle it (php/python/ruby whateveer).Another option is writing an uploader as a stand-alone application (such as flickr uploader, facebook's iPhoto plug-in and alike)The thir...
Review my startup -- Wedding Registry Direct
pclark: tell us about itwhere'd you get the idea, why?how do you hope to make money?
Review my startup -- Wedding Registry Direct
pclark: - "Bringing wedding vendors together with bridal guests" thats too dark on the heading image- I really don't like the stock background image on this page - http://is.gd/7bID- Is the business type page a joke? There at least needs to be an "other" option- The tour should be a video, rather than a manual slide sh...
Review our startup - BeatMyPrice.com
unalone: Is the tag cloud really necessary? I agree with the people who've said that you make good designs, but tag clouds are inherently ugly. And I genuinely don't know: do they get many hits?
What's your Twitter rank?
adoyle: Remember the study where people gave away their passwords for a candy bar? http://www.theregister.co.uk/2004/04/20/password_surveys/That would clearly not work with the HN community. Instead, we need a geeky screen with a disclaimer and the promise of learning how we rank compared to others.What's next? gmailra...
How do I handle a million hits a minute?
scumola: It all depends on how "lean and mean" your app and the data is. If you do everything in javascript up-front and use AJAX to move data back and forth, then you reduce the pure bandwidth except for the initial javascript load (which you could cache on Akamai or something).Some math: Sustained (theoretical maxi...
How do I handle a million hits a minute?
crabapple: lots of hardwarethere are a few best practices to scaling, you can find those archived at places like highscalability etc...but in the end you just need hardware. hardware buys you fault tolerance, test environments, sharding, blah blah blah. if you are looking to meet this traffic on your own box or on a vm...
How do I handle a million hits a minute?
lallysingh: First, relax.Look, you've got ~4 GHz processors available, and you're worried about a million hits a minute. That's nearly 240k clock cycles per hit.Next, you've got 60 +/- 10ms of latency between you and your clients (unless there are details here you aren't covering, but no matter). You don't really hav...
Solid MIME parser library in C or C++?
wmf: Look into Evolution and Thunderbird; both are written in C and are being maintained.
How do I handle a million hits a minute?
spc476: Most of the responses here focused on the disk/data aspect. What about the actual network? IPv4/TCP has a minimum overhead of 40 bytes per packet, with a seven packet overhead for the connection itself (three for making a connection, four for closing the connection). Adding another packet for the actual data...
How do Flickr, Youtube and other high traffic websites handle file uploads?
dhotson: http://code.flickr.com/svn/trunk/uploadr/
How do I handle a million hits a minute?
midwestward: You biggest problem by far is getting a million hits per minute. Getting a million hits at all would be a fairly rare accomplishment.
How do I handle a million hits a minute?
acangiano: As far as the database goes, with decent hardware DB2 9.5 will have you covered [1]. And, should you become truly huge, it can exceed your requirements by a long shot, provided that some serious hardware is employed [2].[1] http://antoniocangiano.com/2008/11/04/benchmarking-db2-purex... [2] http://www.tpc.or...
How to I process one million hits a minute?
owkaye: Business Detail #1: IT'S A LIVE ONLINE AUCTIONI'm not at liberty to discuss the industries or specific applications in which this platform will be used so please don't ask. But I can tell you that the platform is structured like a live online auction with some unusual / unique requirements:Each auction will r...
How to I process one million hits a minute?
owkaye: Business Detail #2 - LIMITED NUMBER OF BIDSEvery bidder gets the same limited number of bids in a particular auction, for example 200 bids each. This means the server software must "count the bids" for each bidder and disable bidding for every person who uses all his/her bids prior to the end of the auction.
How to I process one million hits a minute?
owkaye: Business Detail #3: ONE MILLION HITS A MINUTE MAXEach bidder who remains online and participates during the auction may submit as many as 5 new bids per minute, thus requiring the server to "deal with" as many as one million hits a minute.The auction structure is atypical because the the highest unique bid at a...
How to I process one million hits a minute?
owkaye: Business Detail #4: CLOSED BIDDING WITH LIVE STATUS REPORTSEvery bid is a "closed bid" which means no other bidders know its actual value. Bidders are given the "status" or "position" of their bids in relation to the current unique high bid, but they never see the values of other people's bids.I must send the ...
How to I process one million hits a minute?
owkaye: Tech Issue #1 -- WRITING DATA TO DISKI've always used a database to accomplish tasks like these before, but it seems that what I really need is a faster (RAM-based) way to receive and store every bid value received during the hour-long auction -- along with the bidder's unique ID so I know who made each bid.Onc...
How to I process one million hits a minute?
owkaye: Tech Issue #2 - CAN JAVASCRIPT SPEEDS THINGS UP?If I understand correctly, some have said Javascript in the browser can reduce or eliminate the HTTP overhead and dramatically reduce both data transfer and bandwidth requirements. Is this true?I don't know how to do this but I welcome a simple explanation that il...
How to I process one million hits a minute?
owkaye: Tech Issue #3 - KEEP-ALIVE OR BROWSER PLUG-INS?If a connection can be opened and remain open for the entire hour-long auction this might dramatically reduce the overhead of individual HTTP connections. Is something like this possible with as many as 200,000 bidders? If so, how many (and what kind) of HTTP ser...
How to I process one million hits a minute?
owkaye: Tech Issue #4 - BATCH PROCESSING?I've never done batch processing before, but some have suggested it, and I don't understand how it works just yet. My current concept is that I would receive (for example) 15,000 bids during a one-second period and I would store them in RAM as they are received. Then at the en...
How to I process one million hits a minute?
owkaye: TOPIC: CUSTOM DATABASE STRUCTURE IN RAM?ig1 said: "I've worked on a number of high volume systems (million+ client interactions/minute), and you don't want a conventional database. Either use a custom data-structure to keep it in memory (even if it's across multiple machines) or if you really want to use a data...
How to I process one million hits a minute?
owkaye: Topic: MY EMAIL ADDRESS, TOP OF THE PAGElallysingh said: "If you're doing something game-ish, talk to me privately. Scalability of video games is my phd topic."my reply: It certainly seems like I'm doing something 'game-ish' although it's not likely to be used by the typical gamer. I've posted my email at the ...
How to I process one million hits a minute?
owkaye: Topic: ONE OR MORE SERVERS FOR THE DATA?ig1 said: "Figure out how to partition your data/algorithms so you can split it across multiple machines..."but lallysingh said: "A single dell box could handle your load if you wrote the whole thing in C on a modern quad-core desktop."my reply: If I'm not mistaken you gu...
How to I process one million hits a minute?
owkaye: Topic: LOAD TESTING DURING DEVELOPMENTowkaye (that's me) said: "This is not a system I can grow into, it must be capable of this performance from the very beginning."then ericb said: "I would suggest you load test extensively and make load testing a part of your development process from the get-go. Initially, I...
How to I process one million hits a minute?
owkaye: Topic: GENERAL PLAN OF ACTIONlallysingh said: "So, for advice:1. Ignore database bullshit. You don't need it, it won't help. If you want a DB for other purposes, fine. A snapshot process writing to your DB is fine, just don't put it in the critical path.2. Build a load simulator. A raw mode that just sends over...
How do I handle a million hits a minute?
owkaye: NOTICE ! THIS THREAD IS BEING MOVED !!!I'M GOING TO START A NEW THREAD TO CARRY ON WHERE THIS ONE LEAVES OFF SINCE THINGS HAVE BECOME SUCH A MESS IN THIS THREAD ... AND I'M SHOUTING TO MAKE SURE EVERYONE KNOW ABOUT THIS SO THEY CAN FIND AND PARTICIPATE IN THE NEW, CLEANER AND BETTER ORGANIZED THREAD.Thanks and...
How to I process one million hits a minute?
alecco: You already posted this and you are making comments from what looks like your irc logs or comments from the previous post.http://news.ycombinator.com/item?id=361730
How to I process one million hits a minute?
alecco: IMHO you would be much better off just finding someone to deal with all this. A contractor or a partner.[Edit: read someone experienced on this]
Rate my startup (video)
mdolon: Looks very interesting and promising. I'm not sure if I have much use for it just yet but I think I would be easily convinced after seeing more examples of useful apps. I also like the domain name and applaud you both on the immense amount of work I'm sure it took to make the product.
Rate my startup (video)
jacobscott: What's the technical underpinnings of the stateful stuff? Is it more than multithreading? Ruby specific? Seems neat, but hard to tell if it will really be useful (in possibly the same vein as javascript-based "OS in a browser"s). Can you come up with a killer app? Or reproduce a well known mashup with very ...
Rate my startup (video)
guruz: I like it, it's cool :) Although I can't currently think of a use for it for myself.
Rate my startup (video)
wesley: Very nice, but can you skip the first step? You have to send "ping" first?If I use a service multiple times, I would already know what input the app needed. For example, "Weather NY".
Rate my startup (video)
swombat: "It's a platform for creating widgets for the mobile web". Platforms don't make money. A platform is not a business."We don't really know what widgets are." Following on the point above, you're creating a platform (a non-specific, generic "thingy") for creating widgets (non-specific, generic "thingies") for th...
Rate my startup (video)
alaskamiller: You've made a kind of Automator software (http://en.wikipedia.org/wiki/Automator_(software)) for the web. This is pretty nifty! With more integration with services it could actually be pretty useful.Don't know how you can make money though :(
Rate my startup (video)
mikeyur: Looks pretty sweet, I could probably think of some way to use it :)
Rate my startup (video)
rgrieselhuber: I think this is actually really cool. I agree with the other commenters that you're probably a long way from this being a "startup" (at least in the post-Oct2008 world that would like to see some business model), but you are certainly doing some interesting things.How you turn this into a business is ano...
Rate my startup (video)
davidw: I don't have time to watch videos, sorry.Meaning: I'll happily take a look at your site, and have many times in the past here. What I don't want to do is sit through a video that I can't jump around, explore, and so on, like I might with a site, or a brief article.
How to get Ads fit the Content?
tok9: I'd like some info on this too.
Alternatives to Y Combinator?
davidw: You could do cambridge / mountain view for the three months that you're required to be there, then leave - I don't think there's anything in the rules against that.
Alternatives to Y Combinator?
beaudeal: My first piece of advice would be this: don't bank on YC funding. Sure, it would be great if you got accepted, but that shouldn't stop you from pursuing your idea. Especially if it is still just an idea - work on it at home, in your spare time, and then evaluate your options once you have done everything you ...
Alternatives to Y Combinator?
cperciva: So, is there a similar program but without the move? [...] The biggest attraction of YC to me is the cumulative experience and knowledge of the founders, and I worry that I wouldn't get that with a standard VC path.How do you expect to get a "similar program" without moving? The cumulative experience and kn...
Alternatives to Y Combinator?
markessien: You probably have a day job, right? Put aside a certain amount everymonth and hire people on elance to create your product for you. In a few months it will be done and you can test it on the market. It's risk free, and it's the sensible solution for someone with a wife and children.
Alternatives to Y Combinator?
pragmatic: Why do you need seed/angel funding. Why don't you bootstrap it? Work on it in your spare time? And don't give me excuses about a young daughter. I did it with a young son while working full time. It's about desire, not location. Don't buy into the hype.I'm not convinced YC is a good thing. What about ...
How to I process one million hits a minute?
smoody: Have you checked out memcachedb? It's a wrapper around the berkleydb that uses the memcahed protocol (so support is already available in your language of choice). They're showing benchmark stats that meet your requirements (> 1MM writes per minute on a single box, obviously more boxes = more writes): http://mem...
Alternatives to Y Combinator?
theklub: Anyone mentioned Vencorps.com? If no one has I'd check it out.
How to get Ads fit the Content?
guruz: Take a look at https://www.google.com/adsense/support/bin/answer.py?answer=... Maybe it helps.
Rate my startup (video)
ionrock: I agree with most folks that it does really solve a problem, but in an effort to try and be constructive, one potential problem are forms on mobile devices. It is very difficult to port web applications or forms to mobile platforms because the display area is so small. Creating a conversational interface via c...
Review our startup - BeatMyPrice.com
truebosko: Wow, very cool. I just tried it on a product on our website (We are a Canadian retailer) and it worked!I'm curious how are you crawling the web? As a small business, it doesn't find us unless I actually enter our url (even though we have decent rankings in Google for many of our products)This would be neat t...
Alternatives to Y Combinator?
rsmerritt: There is a new Y-Combinator style accelerator forming in Arizona called Tekcelerate (www.tekcelerate.com).
Alternatives to Y Combinator?
sanj: Consider the fbFund.I'm happy to chat about it. I've written a little about it too: http://blog.luckycal.com/?p=11
Mailing Newsletters
makecheck: An opt-in mailing list system such as GNU mailman would reach the people who want to be reached and give them plenty of options (e.g. individual mails versus digest form, the ability to turn it off temporarily for vacation, etc.).I would strongly recommend you not automatically E-mail your users on a weekly ...
Mailing Newsletters
jmah: http://www.aweber.com/ (not that I've used it)
Please review my startup
vaksel: This looks pretty much like a knock off of google financeAs far as site wise -too much space on the bottom -newstrends are pretty useless for terms, since you get results like you have now "EPS" etc, I'd replace that with newstrends for actual companies.
Please review my startup
blurry: Love the UI but feel a little ambiguous about the basic principle behind it. Would love to hear others' opinions about it though... I could be wrong on this one.As I understand, you basically attempt to correlate stock movement with two major components: (1) market/sector movement, and (2) news.The first one is...
Please review my startup
Aries09: this site is great as a tool i think you are wrong by calling it a google clone also with all that's happening now on wallst i get a chuckle checking it out
Please review my startup
davidw: It looks pretty, and looks kind of interesting, but where's the 'there'? Like vaksel notes... it's pretty similar to Google Finance - what's the compelling reason to keep coming back to your site?
Please review my startup
mstefff: Doesn't Google Finance do this already?I don't understand the use of the "index"...The logo and interface looks a little '5 years ago'..
Please review my startup
steveplace: A couple notes:- It might be a good idea to note stock:market divergences on your chart- Don't know where your parsing your news, but you might want to incorporate a filter for SEC filings and PR releases along with a way to eliminate the fluff/SEO (Motley Fool comes to mind)It seems (as blurry pointed out)...
Rate my startup (video)
decadentcactus: I like it, I'd probably at least play around with it or integrate it if I found a use. Great work!
Please review my startup
tptacek: Are there other things you can chart and correlate news stories to, besides the stock market?Can you put in the extra effort to chart indicators, like VIX and TED and Case-Schiller? CSCO and MSFT stock charts might be tapped out, but this might become useful if it acts as a portal to lesser-known stats.
Please review my startup
cabalamat: Here are my observations for the page http://whomovedmystock.com/GOOG1. it looks pretty2. when I move the bar at the bottom of the chart, the applet keeps reloading. This is annoying. Is it intentional or a bug?3. the bit at the top left where it shows a pie chart of Google's "Market index allocation" -- how...
Please review my startup
sahaj: reading the title, i thought, oh cool, this will tell me which investment firm(s) are buying/selling a particular stock.as others have pointed out, this doesn't provide anything more than what google finance already does.
Please review my startup
volida: the graph doesn't look very professional/serious because of the curves in the change of the direction.