Archive for July, 2010
SocialMail rate limiting
by Daniel on Jul.10, 2010, under Uncategorized
Since moving to a single key for new SocialMail users, it’s become fairly clear that unless I put some controls in place the allocation of queries that I have would be used fairly early in the month meaning no “COMMUNITY” key (i.e. users without their own rapleaf key). In fact my first attempt at rate limiting to 500 queires per day, for the community not each user, mean that the daily allocation was used before 5pm.
Somethings have been changed to improve the situation, I’ve added caching to the server so if the same query is received more than once in a 45 day window the same data is returned (smaller windows are used for requests which don’t return data) to save an API call. Additionally I’ve changed the throttling to 25 queries per hour (again for the COMMUNITY key users) so that the spread is more even throughout the day.
I know this limit is low, but at this stage I don’t have any options but am presently investigating a couple of avenues. If you want more queires then the only option for the moment is to get your own RapLeaf API key and put it in the SocialMail config. When using your own key the throttling doesn’t apply.
Update: Thanks to the folks at Rapleaf, who have given us an increased limit. So to spread this out I’ve upped the hourly limit to 50 queries, still not a lot but its better than where we were.
-Daniel
