How did Twitter handle election tweets?

The place for technology related posts.

Moderator: Moderators

Post Reply
User avatar
Sabre
DCAWD Founding Member
Posts: 21432
Joined: Wed Aug 11, 2004 8:00 pm
Location: Springfield, VA
Contact:

How did Twitter handle election tweets?

Post by Sabre »

Ars Tech
On Election Day, as Donald Trump raged on Twitter about revolution, Nate Silver took an opportunity to pitch his book, and an 18-year old girl vowed to move to Australia "because their president is a Christian and actually supports what he says," Twitter's servers were handling a surge of 327,452 "tweets" per minute, according to Mazen Rawashdeh, Twitter's VP of Infrastructure Operations Engineering. In total, there were 31 million "election-related" posts to Twitter over the course of the day, and the traffic continued to periodically spike—at one point reaching 15,107 tweets per second.

Part of the reason Twitter was able to sustain the unprecedented continuous spikes in traffic, Rawashdeh said in Twitter's engineering blog, was a set of changes the company's operations team has been making over the past year in Twitter's infrastructure—including a move away from the Ruby web scripting language and runtime engine that Twitter was built on, and toward code (a combination of Ruby, Java and Scala code) running on a server-side Java Virtual Machine , while at the same time continuing to tweak Ruby's runtime for more performance.

Twitter has largely run on a modified version of Ruby, called Ruby Enterprise Edition, since 2009. But the interpreter for Ruby has put heavy loads on the processors of Twitter's servers, partially because of its "garbage collection"—the task of reclaiming memory from processes that have ended. Twitter's developers have continued to try to optimize Ruby's garbage collection to squeeze more performance out of the runtime, developing their own garbage collector called Kiji. But the company has also begun to move its development efforts away from Ruby and onto Java.

"As part of our ongoing migration away from Ruby," Rawashdeh said, "we’ve reconfigured the service so traffic from our mobile clients hits the Java Virtual Machine (JVM) stack, avoiding the Ruby stack altogether."
So you move from a language that bottlenecks you because of garbage collection.... to another. :lol: I know Java will be fast, I just find it amusing.
Sabre (Julian)
Image
92.5% Stock 04 STI
Good choice putting $4,000 rims on your 1990 Honda Civic. That's like Betty White going out and getting her tits done.
User avatar
drwrx
DCAWD Founding Member
Posts: 4382
Joined: Mon Sep 20, 2004 8:00 pm

Re: How did Twitter handle election tweets?

Post by drwrx »

All I saw was "Twitter" and "Garbage Collection" and thought that pretty much summed it up.
User avatar
Sabre
DCAWD Founding Member
Posts: 21432
Joined: Wed Aug 11, 2004 8:00 pm
Location: Springfield, VA
Contact:

Re: How did Twitter handle election tweets?

Post by Sabre »

:lol:
Sabre (Julian)
Image
92.5% Stock 04 STI
Good choice putting $4,000 rims on your 1990 Honda Civic. That's like Betty White going out and getting her tits done.
Post Reply