Rectangle 27 0

Check if the container you are using provides this kind of Denial Of Service. If no, then you would have to go with a filter.

Throttle HTTP request in Java Servlet - Stack Overflow

java http sockets servlets tcp
Rectangle 27 0

I think you are going to need to implement some sort of logging widget as part of your process. The log will keep track of request frequency. If the threshold is not met, then you would just skip over that iteration of your CFHTTP call. I don't mean a file log or a database log, but something implemented in the application or even request scope depending on your implementation. There is no way to throttle CFHTTP itself. It is basically a very simplistic wrapper around a Java HTTP library which then goes straight to the underlying operating system.

Would having an application variable that stores the GetTickCount of the previous three requests and checking that if the time from the first item is greater than 1 second then do the next CFHTTP call be a possible solution?

coldfusion - Limit number of CFHTTP requests sent every x seconds - St...

coldfusion cfhttp
Rectangle 27 0

I would write a Filter for that task.

Throttle HTTP request in Java Servlet - Stack Overflow

java http sockets servlets tcp
Rectangle 27 0

The owasp-esapi-java project, hosted at code.google.com, has an implementation of a throttle filter that you can use "as is" or use as inspiration for you own.

You can check the code at the following link:

Throttle HTTP request in Java Servlet - Stack Overflow

java http sockets servlets tcp
Rectangle 27 0

As @EJP said, using a Filter with a HashMap that stores the last access time by IP address key. 10 requests a second would translate to 100ms between calls, minimum. Sending a server busy error code back and killing the request will quickly close the resources used by the connection. There are prebuilt solutions for Apache if that's an option for you.

Throttle HTTP request in Java Servlet - Stack Overflow

java http sockets servlets tcp