Ola
What is the best way to implement something like this.
Lets assume that....
1. A timer is running every 5 minutes, this sends a payload with a unique key, timestamp etc.
2. I receive the payload and save it to a database of choice. Over time, the database will be huge.
3. To deal with this "huge" problem, I'm assuming that I can just be able to ensure that at anytime, I can just store only the last 20 records that were added.
4. So the timestamp of the record depending on the "secret key" is crucial, and perhaps in descending order.
Thing is, how do I implement this?
Thanks
What is the best way to implement something like this.
Lets assume that....
1. A timer is running every 5 minutes, this sends a payload with a unique key, timestamp etc.
2. I receive the payload and save it to a database of choice. Over time, the database will be huge.
3. To deal with this "huge" problem, I'm assuming that I can just be able to ensure that at anytime, I can just store only the last 20 records that were added.
4. So the timestamp of the record depending on the "secret key" is crucial, and perhaps in descending order.
Thing is, how do I implement this?
Thanks