Scaling Facebook To 140 Million Users
1sockchuck writes "Facebook now has 140 million users, and in recent weeks has been adding 600,000 new users a day. To keep pace with that growth, the Facebook engineering team has been tweaking its use of memcached, and says it can now handle 200,000 UDP requests per second. Facebook has detailed its refinements to memcached, which it hopes will be included in the official memcached repository. For now, their changes have been released to github."
Well, I think it's kind of cool that they are putting back, so to speak. If they can use that tweak, so can everyone else. If your requirements all fit on one host server, then that server might now be able to do much more. Perhaps the next changes should be to allow a setting that penalizes retail advertisements by adding some arbitrary delay of greater than 10 seconds?
Support NYCountryLawyer RIAA vs People
We discovered that under load on Linux, UDP performance was downright horrible. This is caused by considerable lock contention on the UDP socket lock when transmitting through a single socket from multiple threads. Fixing the kernel by breaking up the lock is not easy. Instead, we used separate UDP sockets for transmitting replies (with one of these reply sockets per thread). With this change, we were able to deploy UDP without compromising performance on the backend.
I bolded the quote to show what their real problem was. They had a shit load of threads trying to use a single socket and of course there was huge overhead involved due to the mutex lock (Semaphore on kernel side) on a shared resource (the socket). So they blame Linux instead of them selves for such a half-ass implementation of sending out packets from multiple threads with a single socket. They would have gotten the same exact result if they tried it with a single TCP connection socket and attempted to have multiple threads firing off packets with that. If you want multiple threads sending out packets use multiple sockets... Wow what a concept!
Sorry for my ranting, but it just pisses me off when moron programmers blame the operating system for their own stupidity.
Anyway, haven't nearly all MMOs gone with using UDP internally of the game cluster network and TCP externally to reduce latency and network overhead? So this is nothing new to me.
This space is not for rent.
User is sent link, directed to website with malware payload, such as a 0-day IE exploit. User is running unpatched Windows, user is 0wned, PC is 0wned. Hilarities ensue.
It's just a standard trojan with an unusual delivery method of using fake Facebook profiles run by trojan bots. I can't see how this is Facebook's problem any more than it's your email program's fault that you clicked on a dodgy link without checking it.
It can't be addressed... because it's not a security issue with the site. It's an issue that the user needs to be trained on how to spot, and good luck getting that to happen.
I mean, come on, banks have the "problem" you described, and most banks aren't what we'd call insecure.
"16MB (fuck off, MiB fascists)" - The Mighty Buzzard
Now, if /. allowed me to post the (fake) link above, how are they any more at fault than facebook is for allowing potentially dodgy links to be shared via their service?
This is ridiculous, if you can't think of a way to combat this, you don't have a very good imagination. The fact that Slashdot includes a [i-promise.org] after your link is one very simple way to inform the user.
... would it really be that hard for them to test it against a known malicious links database like Firefox's phishing extension does?
Facebook already notifies you that you're leaving Facebook when you click on mail or an instant message inside Facebook
You are creating a product for 140 million users, I would expect you to be doing all you can to protect their security and safety. Right now, it's becoming a hotbed for crime.
Don't get me wrong, it's WAY better than any other social networking site but if someone can overcome these problems, they're going to be more secure than Facebook.
if by validation you mean:
Being able to find old friends you haven't been able to contact in years.
Having a central pull information spot rather than the push model of spaming every email address you have with pics of the new baby, house, car, toaster.
A central and standardized organization spot for arranging informal gatherings with friends, like parties.
According to a poster further up, the figure is based on the number of users that have logged in in the last 30 days. While that number will still be a bit high it shouldn't be awful.
Actually, you're right in that it's not "millions." I meant to make that point and completely forgot in trying to remember the hyphen issue.
I know you might have been going for the comedy thing... but if "talking like a human being" means speaking incorrectly, then I'll pass, thanks. Not that I don't use colloquialisms or always use formal English, but I like trying to avoid grammar, spelling, and pronunciation errors...
What they know about you can fill a warehouse.
What they know about you is only what you tell them.