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


Bob Balaban
Blog Title In Theory...
Blog Description Bob Balaban’s Blog
Blog URL http://www.bobzblog.com/tuxedoguy.nsf/
RSS Feed http://www.bobzblog.com/tuxedoguy.nsf/feed.rss
Validate Feed feedvalidator.org or validator.w3.org
Feed Last Checked Feb 07, 2015 8:08:26 PM EST. Realtime Update:
Location


Recent Blog Posts
18
TokenBucket 2.0!
Sat, Feb 7th 2015 8:07p   Bob Balaban
Greetings, Geeks! I went back and looked at the code I posted here several months ago for doing time-based access counting. I realized that it could be improved and cleaned up just a bit, so I'm sharing a revised version with you here. import java.util.Date; import java.util.LinkedList; public class TimeBasedAccessList { // This is the list of time values. New entries are always // added at the "tail", so the "head" is always the oldest value. //
14
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