Skip to main content
New protocol version released: This page may contain outdated information.
Optimize your HAIP applications with intelligent flow control mechanisms. The SDK’s credit-based system prevents message loss, manages back-pressure, and ensures optimal performance under varying load conditions.

Flow Control Overview

What is Flow Control?

Flow control is a mechanism that regulates the rate of message transmission between client and server to:
  • Prevent message loss due to buffer overflow
  • Ensure fair resource allocation
  • Maintain system stability under load
  • Provide back-pressure feedback

Credit-Based System

HAIP uses a credit-based flow control system where:
  • Message Credits: Control how many messages can be sent
  • Byte Credits: Control how much data can be sent
  • Channel-Specific: Each channel has independent credit pools
  • Dynamic Updates: Credits are replenished based on server capacity

Flow Control Configuration

Basic Configuration

Advanced Configuration

Flow Control State

Checking Current State

Monitoring Flow Control

Sending Flow Updates

Requesting More Credits

Automatic Credit Management

Channel Control

Pausing and Resuming Channels

Channel State Management

Message Queuing

Credit-Aware Message Queue

Flow Control Strategies

Conservative Strategy

Aggressive Strategy

Adaptive Strategy

Flow Control Testing

Mock Flow Control Testing

Flow Control Integration Testing

Performance Monitoring

Flow Control Metrics

Next Steps

Client API

Learn about the client interface and methods.

Examples

See practical examples of flow control usage.

Error Handling

Understand error handling and recovery.

API Reference

Full API reference documentation.