262 Lotus blogs updated hourly. Who will post next? Home | Blogs | Search | About 
 
Latest 7 Posts
Token bucket!
Sun, Jun 8th 2014 7
"Employee of the Quarter" (not)
Fri, Dec 27th 2013 3
Geek-o-Terica 17: Accuracy vs. Precision, The Time Drift Chronicles
Sun, Sep 8th 2013 5
Some Interesting Tech I’ve Been Involved With Lately
Sat, Apr 20th 2013 5
The Interesting Difference Between "Exception" and "RuntimeException" (Java)
Sat, Feb 2nd 2013 5
"Reflections on Reflecting Light" - Java program
Wed, May 9th 2012 5
Happy 5th? Yeah, 5th
Wed, Apr 11th 2012 3
Top 10
Token bucket!
Sun, Jun 8th 2014 7
Geek-o-Terica 17: Accuracy vs. Precision, The Time Drift Chronicles
Sun, Sep 8th 2013 5
Some Interesting Tech I’ve Been Involved With Lately
Sat, Apr 20th 2013 5
The Interesting Difference Between "Exception" and "RuntimeException" (Java)
Sat, Feb 2nd 2013 5
"Reflections on Reflecting Light" - Java program
Wed, May 9th 2012 5
"Programming Domino With Java" - Final Flush
Mon, Jan 2nd 2012 5
"Programming Domino With Java" - Fourth Hit
Sun, Nov 20th 2011 5
"Programming Domino With Java" - Sixth Sip
Tue, Dec 6th 2011 4
"Programming Domino With Java" - Third Gulp
Mon, Nov 14th 2011 4
Geek-O-Terica 15: Easy conversion of Notes documents to MIME format (Part 1)
Mon, Mar 21st 2011 4




Recent Blog Posts
7
Token bucket!
Sun, Jun 8th 2014 11:10a   Bob Balaban
Greetings, geeks! I came across this problem on a project I'm doing: given a RESTful API on a web application server, how do you "throttle" calls so that a given authenticated user can only make a certain number of calls (N) per time interval (W), where both N and W are configurable. The solution I came up with is basically a “Token Bucket” with a sliding time window. What surprised me when I got something working was how easy it really was to implement. The context in whi




Created and Maintained by Yancy Lent - About - Planet Lotus Blog - Advertising - Mobile Edition