# How back pressure works in pipeline to pipeline communication

**URL:** https://discuss.elastic.co/t/how-back-pressure-works-in-pipeline-to-pipeline-communication/368120
**Category:** Logstash
**Created:** [October 2, 2024, 9:05am UTC](https://discuss.elastic.co/t/how-back-pressure-works-in-pipeline-to-pipeline-communication/368120 "2024-10-02T09:05:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![gwa99a9](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gwa99a9/32/125879_2.png) [@gwa99a9](https://discuss.elastic.co/u/gwa99a9)
#### Post date: [October 2, 2024, 9:05am UTC](https://discuss.elastic.co/t/how-back-pressure-works-in-pipeline-to-pipeline-communication/368120/1 "2024-10-02T09:05:51Z")

</div>

Hello, I have question about pipeline to pipeline communication when handling back pressure.

My setup is - from the microservices we send api calls as logs via tcp to (codec json) logstash and we have one input pipeline and some grok patterns to match the data then sends to other pipelines to progress the data.

So when ever we do GET API call that log will come to input-tcp and it will check the type of the call and based on the type it will send to multiple pipelines to process that data.

My question is if i take 500 events as a batch and sent to other pipelines to process, if those pipelines takes like total of 10 seconds to output that same batch to es. Due to the back pressure from those 10 pipelines will the output of input-tcp be stalled? Till the older 500 batch is send to es from those 10 pipelines.

logstash version : 17.6  
workers 1  
batchSize 500  
mem is 24gb/jvm 16gb

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/e/ae725379d5613fbeb05bf07e98f2535b26f1db27.png)

Thanks!

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [October 2, 2024, 2:34pm UTC](https://discuss.elastic.co/t/how-back-pressure-works-in-pipeline-to-pipeline-communication/368120/2 "2024-10-02T14:34:50Z")

</div>

According to the [documentation](https://www.elastic.co/guide/en/logstash/current/pipeline-to-pipeline.html#how-pipeline-to-pipeline-works) " A `pipeline` output will be blocked if the downstream pipeline is blocked or unavailable."

I read that to mean that back-pressure will propagate through the pipeline and stall the input.
