API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#API Connect
#Applicationintegration
#APIConnect
 View Only
  • 1.  IBM API Connect caching response

    Posted Fri January 20, 2023 12:55 AM
    Hi,

    We have an API which makes a call to backed Azure APIM and caches the response using the invoke policy. We use IBM DP API Gateway and API Connect version used is 10.0.1. The client invokes the API using a HTTP GET operation with Authorisation Bearer. Cache control max age is set to 60 sec.  

    The invoke policy properties set are: 

    1. Verb: key
    2. backend type: detect
    3. Cache key: custom
    4. cache-response: protocol

    the invocation happens using cache control headers.  First request is directed to backed Azure API APIM and second and subsequent calls are returned from the API cache. 

    There are no errors in the DPOD logs associated with APIC gateway. But when the invocation from APIC to Azure is made, probably for the cached calls.  APIC seems to make HEAD requests to Azure and there are exceptions stating" Unable to match incoming request to an operation. Operation not found in configuration."  Due this exception at backend Azure, there are unwanted alerts raised (though there are no errors at APIC layer).

    Question is: Does APIC inturn make HEAD requests to backed applications when caching is enabled at the APIC layer.

    Thanks,


    ------------------------------
    Radhika Tharayil
    ------------------------------


  • 2.  RE: IBM API Connect caching response

    Posted Mon January 23, 2023 09:51 AM
    Hi yes the head requests are made to check if the data on the server is newer then that in the cache.

    ------------------------------
    Matthias Siebler
    MA
    ------------------------------