Open Source API Gateway

shadowing

Version

Clones incoming requests and sends them asynchronously to one or more shadow targets (main exchange continues unchanged).

Example Configuration

shadowing:
targets:
- host: shadow.example.com
port: 8080
shadowing:
    targets:
      - host: shadow.example.com
        port: 8080

Syntax

shadowing:
'$ref': <string>
httpClientConfig: {}
targets:
- <target>
shadowing:
  '$ref': <string>
  httpClientConfig: {}
  targets:
    - <target>

Attributes

NameRequiredDefaultDescriptionExamples
$reffalse-Reference a component defined under components.-

Child Structure

ElementCardinalityDescription
httpClientConfig0..1Connection pooling, timeout, retry, and proxy settings for outgoing HTTP connections made by this element. When omitted, the router's global httpClientConfig applies.
target0..*Shadow hosts each incoming request is additionally cloned and sent to in the background, once its body has been read completely. A request whose body could not be read is not shadowed. Responses from the shadow hosts are not returned to the client. A 5xx response is only logged.

Can be used in