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 · Jun 29, 2015 at 01:36 pm · 5 comments

Do You Have Insurance on Your Smartphone?

While affordable smartphones are becoming more available, the majority of high-end flagships are still upwards of $600. With these devices carrying such a hefty price, people look for different ways to protect their investment. The most popular way to protect your smartphone is just to buy a case, but many people like the added peace of mind that comes with insuring your phone. We're interesting in seeing just how many of you actually buy insurance on your smartphone. Let us know why or why not in the comments below.

DISCUSS
Jack Jennings · Jun 29, 2015 at 12:45 pm · 2 comments

Apple Music Will Increase iTunes Match to 100,000 Songs

The battle for music streaming subscription dominance is starting to really heat up, with Apple planning their next offensive in line with the release of iOS9 later in the year. A major draw for these kind of services is the ability to have your current music library uploaded and copies of the tracks available to be streamed on the go.   Today Eddy Cue, an Apple Exec has released some details on how iTunes Match will integrate with the soon to be released...

XDA NEWS
Share This