admin · Jul 14, 2014 at 12:00 pm

XDA Behind the Scenes, Part 2

This is part two of a series that takes a look at how we keep XDA running. In case you missed it, check out part one, which covers XDA’s moderation system. This second part, written by our server administrator, explains how XDA’s server configuration handles all of our traffic and many page requests.

The core of XDA’s hosting infrastructure is located at the LeaseWeb data center in Virginia, USA. XDA has a rack of bare-metal servers including database servers, PHP servers, caching servers and other miscellaneous services that make XDA work. These servers are top of the line, dual hex-core processors, with a ton of RAM and very fast redundant network connectivity.

Let’s take a look at the path of a request that comes in. First, it is processed by our load balancer, which also acts as our full-page caching server. If you are logged out and your page has been recently requested, you will be served a page from cache which allows for a speedy page load. If the page is stale, or you have a custom request (when logged in), then your request is then sent to one of our many application server. These servers essentially run PHP all the time, and create the custom page you are requesting. We cache as many parts of the site as possible in memcache, which saves database requests. Finally, we run a cluster of database servers to handle persistent data. The PHP servers compile all of this information and send it back to the load balancer, which then sends it back to you.

Back in November, we moved to LeaseWeb. The engineers at LeaseWeb worked with our stringent requirements to put together a hosting solution that was an order of magnitude faster than our old setup. Since both the servers and network was faster, our pages are created faster than ever before.

XDA has three in-house programmers who are always customizing our existing site and adding interesting new features like DevDB. We develop the new code on our machines, test it in a staging environment, then push to our live infrastructure after all the bugs and kinks have been worked out.

The XDA infrastructure has really grown organically. It wasn’t too long ago that XDA was hosted on a single server and had frequent outages when a particular post would start getting a lot of views. We now handle a significantly larger amount of traffic, and are able to serve pages more quickly. Of course, we are never fully satisfied with site speed and are always working on making things faster for our users.

Again, we would like to thank LeaseWeb for sponsoring this series of articles. If you’re in need of robust cloud, dedicated server, or CDN services, please consider LeaseWeb.


_________
Want something on the XDA Portal? Send us a tip!
TAGS:

admin

admin is an editor on XDA-Developers, the largest community for Android users. I am the xda administrator. Hear me roar. View admin's posts and articles here.
Emil Kako · May 23, 2015 at 12:31 pm · 3 comments

Which Features from Apple Watch Do You Think Android Wear Will Copy?

The Apple Watch and Android Wear are both growing platforms. Now that we've gotten the chance to see both of them in-depth, we can get a good idea of which directions the two are headed. We recently did a discussion and asked you what you thought the Apple Watch would copy from Android Wear. Today, we ask you the opposite. Which features do you think Android Wear will copy from the Apple Watch and why?

DISCUSS
Mario Tomás Serrafero · May 23, 2015 at 12:00 pm · 4 comments

XDA Picks: Best Apps of the Week (May 15 – 22)

Apps are at the front and center of any smartphone experience, and with over a million apps on the Google Play Store and new apps being submitted to our forums every day, staying up to date on the latest apps and games can be a hassle. At XDA we don’t discriminate apps - if it’s interesting, innovative, original or useful, we mention them. The XDA Portal Team loves apps too, and here are our top picks for this week.  ...

XDA NEWS
Emil Kako · May 22, 2015 at 10:35 pm · 5 comments

Other than XDA (of Course), What’s Your Favorite Site That Covers Android?

There is a number of other great sites that cover Android, so we're wondering which other sites our community likes to frequent. Tell us your favorite Android website and what about the site that makes it your favorite.

DISCUSS
Share This