# Akka Stream from Resource

**URL:** <https://discuss.akka.io/t/akka-stream-from-resource/6930>\
**Category:** Akka Libraries\
**Created:** [July 24, 2020, 7:14am UTC](https://discuss.akka.io/t/akka-stream-from-resource/6930 "2020-07-24T07:14:12Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![alexelcu](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/alexelcu/32/414_2.png) [@alexelcu](https://discuss.akka.io/u/alexelcu)\
**Post date:** [July 24, 2020, 12:43pm UTC](https://discuss.akka.io/t/akka-stream-from-resource/6930/7 "2020-07-24T12:43:41Z")

</div>

M’kay this is a related question about buffering:

> [@Akka Streams: Force just one initial Publisher#request(1), no buffering](https://discuss.akka.io/t/akka-streams-force-just-one-initial-publisher-request-1-no-buffering/6938):
>
> It appears that when subscribing to a Source, I get 2 events pulled from it, even if I limit the “input” buffer to its minimum size: .withAttributes(Attributes.inputBuffer(0, 1)) Minimal sample: Source.fromPublisher(???) .mapAsync(1) { x =\> Future { Thread.sleep(2000) println(s"Received: $x") } } .withAttributes(Attributes.inputBuffer(0, 1)) I cannot find a way to stop the buffering. From the perspective of the Subscriber and its Subscription, this would generate: r…

---

_[View the full topic](https://discuss.akka.io/t/akka-stream-from-resource/6930)._
