I have a chain of data pipelines communicating to each other through pipeline-specific Pub/Sub topics.
[pipeline #1] -> [pipeline #2] -> [pipeline #3] -> ...
Each pipeline is totally stateless and can scale horizontally based on the respective pub/sub queue size.
Each pipeline has its own throughput.
The pipeline #2 uses a 3rd party API. This API has hourly/daily rate limit.
Sometimes I have spikes in the workload. All pipelines but API pipelines can scale up to handle the workload. But not the API pipeline. It can eventually catch up, but not right away.
Is there a way to throttle down a pub/sub topic/subscription throughput to a specific number of messages per hour/day?
Pretty sure the answer is NO. If so, what are my other options?