On Thu, Jun 7, 2018 at 9:42 AM, Thorsten Schöning <tschoen...@am-soft.de> wrote:
> Hi all, > > I need to create some Java application sending large binary files to > some SOAP endpoint and one major requirement is that I implement some > bandwidth throttling, so that the upload of the file only consumes > e.g. XX MBit/s of the overall available upload bandwidth. > > That doesn't need to be dynamic in any way, a very simple solution > with configuring some fixed MBit/s or such is totally enough at least > to start things. The problem of my customer is that his upload is > somewhat limited and the large files to send consume a lot of that > intefering with human users needed ssome upload for mails and stuff as > well. It is totally OK if sending those large files takes some minutes > or so more if other users are not influences negatively too much this > way. > > Does Axis2 already support anything in that direction I could have a > look at? If not, could you provide some hints/keywords on where I > should look at to implement some throttling? > > I do not recall seeing anything QOS related in the axis2 source. The Apache httpcomponents lib from the client, and on the server the http-listener config (Wildfly for example) can tune some of the rate behavior. Really though, I would first look at nginx or some type of proxy server first as that is perhaps the best tool for the job. https://docs.nginx.com/nginx/admin-guide/security-controls/controlling-access-proxied-http/ Another alternative is apache httpd which is often used as a streaming server so it has tons of config options like mod_qos, that can be used with apache ajp and Wildfly / Tomcat etc. Regards, Robert > Thanks! > > Mit freundlichen Grüßen, > > Thorsten Schöning > > -- > Thorsten Schöning E-Mail: thorsten.schoen...@am-soft.de > AM-SoFT IT-Systeme http://www.AM-SoFT.de/ > > Telefon...........05151- 9468- 55 > Fax...............05151- 9468- 88 > Mobil..............0178-8 9468- 04 > > AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln > AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org > For additional commands, e-mail: java-dev-h...@axis.apache.org > >