Jersey 2.x Restlets - apply governance control (like limit on number of requests allowed for restlet resource) -


i have been reading jersey 2.17 user guide possibities around applying governance limits on exposed restlet resources. particularly interested in applying limits on incoming requests particular jersey restlet resource particular client consumer (for example: want allow 10 requests per 30 second particular source).

please let me know if has feasible approach in mind based on experience native api capabilities. in advance!

what can achieve restlet use apispark extension.

this similar question should answer question: limit request on restlet resource apispark restlet extension

where can this:

firewallrule rule = new periodicfirewallcounterrule(60, timeunit.seconds, new ipaddresscountingpolicy()); ((periodicfirewallcounterrule)rule).addhandler(new ratelimitationhandler(new uniquelimitpolicy(10))); firewallfilter firewallfiler = new firewallfilter(getcontext(), list(rule)); firewallfiler.setnext(router); 

to limit access app's restlet server resources. hope helps or @ least give hint.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -