CSCI 470 |
Pruning data. Users may disappear from the network without deleting themselves from the tracker. You need to implement a pruning mechanism. If more than 1 minute has elapsed since a user's last update command, then you should delete that user from the tracker. This pruning should happen in a timely manner (i.e. within a few seconds of being over 1 minute stale, the user is deleted).{ "status": "OK", "near": [ { "name": "carol", "northing": 50, "easting": 150, "distance": 70.710678, "timestamp": 1362722508 }, { "name": "bob", "northing": 150, "easting": 150, "distance": 70.710678, "timestamp": 1362722494 } ] }
Page last updated: May 15, 2013