An API would not necessarily need to query the database, on a static site that indeed is a terrible idea. However, it could request from the server the post directly from the cache and give it away in, say, JSON, it would be a helluva lot easier on the user but at the same time it would not require the server to open a socket and query the database. Considering threads are updated on posting and not on viewing, there wouldn't even be a need for the server to validate the cache, thus no queries.
Though I can't really tell how much of a different effort it would take in delivering a 200 post thread on every refresh VS that bit of logic. If it's not significant enough the change, while pretty and structured, is pointless.
Last edited at Wed, Dec 11th, 2013 08:43