JBoss Community Archive (Read Only)

SwitchYard 1.1

Throttling

SwitchYard provides support for message throttling.  Throttling is configured on a composite service and applies to all requests received through all gateways configured on the service.  Throttling of individual gateways is not supported at this time.

The following options are available:

Here's an example configuration, restricting the OrderService to handle at most one request every ten seconds.  Notice the sy:throttling element is located within an sca:extensions element.

<sca:composite name="orders" targetNamespace="urn:switchyard-quickstart-demo:orders:0.1.0">
    <sca:service name="OrderService" promote="OrderService">
        <soap:binding.soap>
            <soap:wsdl>wsdl/OrderService.wsdl</soap:wsdl>
            <soap:socketAddr>:9000</soap:socketAddr>
        </soap:binding.soap>
        <sca:extensions>
            <sy:throttling maxRequests="1" timePeriod="10000"/>
        </sca:extensions>
    </sca:service>
</sca:composite>
Specifying the same configuration in the editor:

images/author/download/attachments/76153919/dg-throttling.jpg

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 09:58:47 UTC, last content change 2013-11-18 18:10:53 UTC.