Question What is GBAtemp's caching logic?

Discussion in 'Site Discussions & Suggestions' started by Frederica Bernkastel, Sep 16, 2015.

  1. Frederica Bernkastel

    Frederica Bernkastel WebPerf and PWA advocate; @antoligy on Twitter

    GBAtemp Patron
    Frederica Bernkastel is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Jan 31, 2008
    United Kingdom
    This is more curiosity than anything else: Web performance and scalable applications in an SOA are two areas I currently specialise in, and every bit of insight gleaned from how people have tackled the common challenges is very useful. Plus maybe even I can offer feedback!

    Firstly and most openly, how does GBAtemp deal with serving vast quantities of user dynamic content to both anonymous and registered users?

    Is nginx the only layer of HTTP cache between XenForo and the outside world, and if so, is the bulk of the caching logic implemented within that (Vary on x-whatever, assign x-whatever based on arbitrary session values, reset request and then strip out x-whatever) - Or is application level caching on XenForo's side more important here?

    PHP-wise, what version or distribution do you currently use in production and do you use any opcode caching or other extensions such as Phalcon?

    Do you employ the use of queues or otherwise defer tasks such as database writes? If so, how is this governed, and what software do you use?

    Is MySQL used for persistence on its own, and if so what engine and optimisations are you using?
    If not, how do you serve content so fast?

    How many servers currently power the site? Are they separated into different roles? (Cache, application, datastore etc..)

    Are there plans to start optimising the front-end for delivery to browsers, through methods like critical path CSS and progressive enhancement?

    Is it web scaaaaaaaaaaaale?
    WhoAmI? likes this.
  2. FAST6191

    FAST6191 Techromancer

    pip Reporter
    Nov 21, 2005
    United Kingdom
    I am not one of the ones playing with the hosting here and actually do not know most of the answers you seek. However Costello is presently writing a new book and I believe such things form a decent chunk of the content of it.
    shaunj66 likes this.
  3. WhoAmI?

    WhoAmI? PASTA's dirty animal

    Mar 15, 2015
    Poké Ball
    I'd also like to know how GBATemp works as I'd like to optimise my own web servers.
    Frederica Bernkastel likes this.