B
Bobster
Does all the posting they make count as traffic for the site?
Unfortunately that wouldn't be possible as the forum has to cache each page so serve the same to everyone who requests it. The server doesn't actually receive a good proportion of the requests as that would make the running of the site a lot more expensive. Only when someone makes a postp the cache would be flushed and then there would be an update to the cache.The ignoring of users should be done in the query that fetches the post lists, not during the rendering of the HTML.
Unfortunately that wouldn't be possible as the forum has to cache each page so serve the same to everyone who requests it. The server doesn't actually receive a good proportion of the requests as that would make the running of the site a lot more expensive. Only when someone makes a postp the cache would be flushed and then there would be an update to the cache.
I used to be in a team running a well known website and the bill for back end servers alone was thousands a month and the same for bandwidth on top.
Even a small tweak to the caching to improve it saved us 1k a month in bandwidth, so it is important.
Interesting question but looking at the figures on Alexa about where the traffic is coming from, I don't think they do. Electriciansforums.co.uk Traffic, Demographics and Competitors - Alexa - https://www.alexa.com/siteinfo/electriciansforums.co.ukDoes all the posting they make count as traffic for the site?
You don't cache unique pages such as search results etc or at least not for any significant period. Pages such as popular threads are cached both at server level and at CDN level by Cloudflare. There may also be load balancers etc that hold cached pages but I'm not sure with this particular site.Question... how do you cache a page that is unique to every user each and every time they request it (unless they haven't actually read any posts and no new posts have been made)?
My next question... define well known (how many visitors, daily page serves, that kind of definition) and if you wouldn't mind... how many web servers, database servers etc.
Interesting question but looking at the figures on Alexa about where the traffic is coming from, I don't think they do. Electriciansforums.co.uk Traffic, Demographics and Competitors - Alexa - https://www.alexa.com/siteinfo/electriciansforums.co.uk
You actually cache responses rather than pages in reality, so all the styles and images and whatnot is cached for a while. The response will be basically the high level and structure for the page itself, as well as the content. I.e. the html. And the "new posts" page response will be served identially for all users until a post is made, then a new version will go to all users, etc. If the server started making bespoke responses depending who's ignored who it would grind to a halt more quickly.Question... how do you cache a page that is unique to every user each and every time they request it (unless they haven't actually read any posts and no new posts have been made)?
last I checked it was around 100million browsers a month and 30 million plus page views from up to 10 million browsers a day although that includes apps as well as web, IIRC we were serving hundreds of GB per hour from the origin and that doesn't include images or videos, css/js etc. Pretty much just html and ajax responses. Database was done by another team, web servers was around 30 although some of them were busier than others.My next question... define well known (how many visitors, daily page serves, that kind of definition) and if you wouldn't mind... how many web servers, database servers etc.
True, but if the fundamental data is the same, then you can cache that. We have a discussion system and although that has the most requests, they can be cached pretty well because it's all iterated through with ajax. For every post and thread it is read many more times than it is written.Pretty much every page is unique to every visitor at any particular point
Depends on your definition of best, I would have done the same before working on that site. But sending more requests to the DB is going to kill your scalability. And database is very expensive compared with runnning some JS to stitch things together on the client side. That's kind of free once you get away from dev costs. A clue when it's happening here is that the page loads with a bare header and after a few seconds the New posts icon goes red and the flag for new posts.the best way to handle the new posts page is to move the ignore processing into the database.
Yep that's a good point and I didn't mean to disrupt that so sorry, I just wanted to help move forward the discussion in case it helps people's understanding (the mods obviously don't want people to feel like the problem is being ignored, actually it's tricky especially for off the shelf software)All I was trying to do was explain why the issues with ignoring lots of spammers results in an empty new posts page if the spammers have been busy and have filled it with their crud.