#aaronpki was sketching out my polling plans for ownyourswarm and i came to a very different approach i am realizing
#aaronpktho it might only be applicable to ownyourswarm because of specific behavior on swarm
#aaronpk(people don't often comment or like super old posts at all)
#aaronpkmy plan was to maintain a separate polling schedule for each checkin
#snarfedhuh wow, i wonder about scaling. how long would you poll each checkin?
#aaronpkmy plan was to do backoff at the following intervals, and restart the schedule if any changes were detected: 15,30,60,120,300,600,1800,3600,14400,86400
#aaronpkhm yeah there is an endpoint to get the last N checkins
#aaronpkand that does seem to include photos and likes and comments
#aaronpknot coins, but that's an easy one to special-case
#snarfedyeah, then your poll tasks scale with users, not checkins
#snarfedmany silos at least include at least a count of each kind of response (eg coins), if not the coins themselves, which you can cache so you know whether there are new ones to fetch
#aaronpkit appears foursquare returns 'compact' checkin objects in the list view, which doesn't include the 'score' (coins)
#aaronpkalso from https://developer.foursquare.com/docs/users/checkins "We highly discourage developers from polling this endpoint to learn of new check-ins or to keep their users' check-in history synced. Using the real-time API is a much better solution."
#aaronpkwell it seems like if i can make one request to get the user's latest 250 checkins, including all the comments and likes, then i just end up doing a bunch of processing on my side each time i hit that endpoint, which is cheap
snarfed joined the channel
#snarfedexactly! that's what bridgy generally does.
[cleverdevil] joined the channel
#snarfedplus maybe n coin fetches, or less than n if you get counts or last coin timestamp or something
#aaronpkcoins are easy because they're available almost instantly
#aaronpkif i wait 10 seconds, they'll be there, and no new ones will be added unless a photo is added later
#aaronpkphoto polling is a little trickier, but i think that's where my backoff polling schedule comes in.
#aaronpkwhen you check in, there is no photoat first, the photo appears after the app has uploaded it and attached it to the photo. however i don't know exactly when that will be, so i was thinking of the backoff strategy to find it