Efficient way to compute rolling view counts per video (sliding window) in PHP vs C++?

I’m building a video sharing platform and need per-video view counts over the last 24h, updated often. Is a ring buffer of hourly buckets the standard sliding-window approach here, and is it worth doing in C++ or is PHP fine for about 100k videos? Thanks!