# Source.future vs Source.futureSource

**URL:** <https://discuss.akka.io/t/source-future-vs-source-futuresource/9330>\
**Category:** Akka HTTP\
**Created:** [December 22, 2021, 1:18pm UTC](https://discuss.akka.io/t/source-future-vs-source-futuresource/9330 "2021-12-22T13:18:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kstokoz](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/kstokoz/32/1598_2.png) [@kstokoz](https://discuss.akka.io/u/kstokoz)\
**Post date:** [December 22, 2021, 1:18pm UTC](https://discuss.akka.io/t/source-future-vs-source-futuresource/9330/1 "2021-12-22T13:18:59Z")

</div>

Hi Akka Team,

I`m wondering which option is a better one to get source from future of http response:

```auto
          val httpResponse: Future[HttpResponse] = ???

          Source.future(httpResponse).flatMapConcat(_.entity.dataBytes) //1
          Source.futureSource(httpResponse.map(_.entity.dataBytes)). //2

```

What i saw was that option 1 can produce warning messages:

```auto
java.util.concurrent.TimeoutException: Response entity was not subscribed after 1 second. ...

```

in case nobody pulls the source for some time.

Regards,  
Kyrylo

---

<div class="post-metadata">

**Author:** ![johanandren](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/johanandren/32/85_2.png) [@johanandren](https://discuss.akka.io/u/johanandren)\
**Post date:** [December 23, 2021, 3:45pm UTC](https://discuss.akka.io/t/source-future-vs-source-futuresource/9330/2 "2021-12-23T15:45:47Z")

</div>

As you say,

`Source.futureSource` is probably somewhat safer with regard to the subscription timeout hitting as it will materialize/subscribe to the given source immediately when the future completes, and then apply backpressure to it, while I think `Source.future().flatMapConcat()` will delay actually subscribing if there is backpressure.
