Well to overcome RAM usage you can make this smarter right. For example keep the data from the last week in Redis and after that store it in the database for example.
Anyway, the only way to find that out is actually doing it and monitoring it ;)
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm building a URL shortener application, and I want to provide daily click analytics for each link (e.g. link a was clicked 43 times on Jan. 25, 22 times on Jan 26 and 0 times on Jan 27).
Redis seems like a pretty good solution for this. I'm thinking I could store daily link clicks with keys structured like "link-[link id].[date]" (eg link-1.01-25-2018).
However, let's assume there are tens (or hundreds) of thousands of links, each one needing to have its clicks tracked every day. I am wondering how quickly RAM usage would become a problem, especially after a few months of tracking many thousands of links.
What are your thoughts?
Well to overcome RAM usage you can make this smarter right. For example keep the data from the last week in Redis and after that store it in the database for example.
Anyway, the only way to find that out is actually doing it and monitoring it ;)
Please or to participate in this conversation.