getindata / flink-http-connector

Http Connector for Apache Flink. Provides sources and sinks for Datastream , Table and SQL APIs.
Apache License 2.0
136 stars 39 forks source link

Implement rate limiting strategy #67

Open kristoffSC opened 8 months ago

kristoffSC commented 8 months ago

In Flink 1.16 a [Rate limiting API](https://flink.apache.org/2022/11/25/optimising-the-throughput-of-async-sinks-using-a-custom-ratelimitingstrategy/) was added to Flink Async Writer.

This can help to slow down rate of Http calls in case when HTTP endpoint is overwhelmed and timeouts or rejects HTTP requests. The API needed for this functionality is described here - https://flink.apache.org/2022/11/25/optimising-the-throughput-of-async-sinks-using-a-custom-ratelimitingstrategy/

Rate Limiting API should be available both in Table and Streaming API.

Probably, requests retry must be implemented first.