Example Use Case

TIBCO API Exchange Gateway shares the maximum throttle count of a rate throttle between the two active Core Engine instances.

TIBCO API Exchange Gateway requires the following configuration setup to share the throttle count for a T1 throttle between the two active Core Engine instances:

  • Number of active Core Engine instances : 2
  • Throttle Configuration:
    • Throttle Name: T1
    • Throttle Type: Rate
    • Max Limit: 5
    • Use Approximate Monitor: false
    • Max Count Ratio:10
  • Set the useSharedThrottle property to true in the ASG_CONFIG_HOME/asg.properties file.
  • Start the two engine instances.
Note: Do not start any Global Throttle Manager instance.

TIBCO API Exchange Gateway processes the requests between the active Core Engine instances as follows:

  1. If you send two requests to the Core Engine1 instance, the value of throttle count in ActiveSpaces metaspace is set as follows:
    • Current throttle count : 2
    • Max Limit: 5

    The Core Engine1 instance processes two requests successfully.

  2. If you send three requests to the Core Engine2 instance, instance, the value of throttle count in ActiveSpaces metaspace is set as follows:
    • Current throttle count : 5
    • Max Limit: 5

    The Core Engine1 instance processes three requests successfully.

  3. If you send any additional request to the Core Engine1 or Core Engine2 instance, the value of throttle count in ActiveSpaces metaspace is set as follows:
    • Current throttle count : 6
    • Max Limit: 5

    TIBCO API Exchange Gateway rejects this request as the value of current throttle count in metaspace is greater than maximum limit for the throttle.