# Genstage patterns

**URL:** <https://forum.elixirforum.com/t/genstage-patterns/5155>\
**Category:** Questions\
**Tags:** genstage\
**Created:** [May 19, 2017, 11:46pm UTC](https://forum.elixirforum.com/t/genstage-patterns/5155 "2017-05-19T23:46:22Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Anko](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/a/8c91f0/32.png) [@Anko](https://forum.elixirforum.com/u/Anko)\
**Post date:** [June 9, 2017, 9:56pm UTC](https://forum.elixirforum.com/t/genstage-patterns/5155/12 "2017-06-09T21:56:39Z")

</div>

Thanks Sasajuric,

I believe this is what genstage is meant to do. When the writer is available, it sends demand (a number) back up through the processing pipeline so the producer knows it can send up to “demand” number of events to the writer.

The problem is, it’s not working. Which is why I introduced this extra buffering mechanism and why i’m asking the question.

I guess i wasn’t very clear about my first problem in my own mind. It’s really that I need help with debugging genstage!

Thanks

---

_[View the full topic](https://forum.elixirforum.com/t/genstage-patterns/5155)._
