Layer7 API Management

  • 1.  How does one manage/limit the size of streaming attachments in CA API Gateway?

    Posted Feb 24, 2015 10:53 AM

    I am trying to find out where to manage the size of streaming attachments in CA API Gateway.



  • 2.  Re: How does one manage/limit the size of streaming attachments in CA API Gateway?
    Best Answer

    Broadcom Employee
    Posted Feb 24, 2015 05:22 PM

    James,

     

    This can be controlled through several different means depending on the granularity:

    1) Global Level: Cluster Wide Property io.xmlPartMaxBytes which be default is 2 MB and set in bytes and covers all request XML and non-XML payloads.

     

    Take the Global and narrow down based on service/policy

    2) The Listen port on the Advanced tab in the Override maximum message size section for inbound payload

    3) Limit message size assertion for both inbound, outbound, context variable payloads for validation of size

    4) Routing Assertion such JMS and HTTP can also enforce limits being returned.

     

    Sincerely,

     

    Stephen Hughes



  • 3.  Re: How does one manage/limit the size of streaming attachments in CA API Gateway?

    Posted Feb 25, 2015 11:14 AM

    Hi Stephen, Thanks for your prompt reply. This helps us determine our strategy and I like the granularity per service.

     

    Another question: Which of these options Global and Service-Based affects attachments? Is it just the global level? and does non-XML payloads translate to attachments?

     

    Thanks,

     

    James



  • 4.  Re: How does one manage/limit the size of streaming attachments in CA API Gateway?

    Broadcom Employee
    Posted Feb 25, 2015 12:16 PM

    James,

     

    The io.xmlPartMaxBytes CWP is the main limit for both payload body and attachments. If you are looking at SWA or MTOM, these assertions have a validate assertion that can limit the size of the attachment themselves.

     

    Sincerely,

     

    Stephen Hughes



  • 5.  Re: How does one manage/limit the size of streaming attachments in CA API Gateway?

    Posted Feb 25, 2015 01:57 PM

    Stephen, if I have the global io.xmlPartMaxBytes CWP set to 2MB, and a  validate assertion set to allow 5MB, does the global limit take precedence over the service level assertions?



  • 6.  Re: How does one manage/limit the size of streaming attachments in CA API Gateway?

    Broadcom Employee
    Posted Feb 25, 2015 02:37 PM

    James,

     

    Global level is always applied first and then assertion and listen port settings are applied after so if the whole payload is more than the Global level it will deny the request.

     

    Stephen