Re: [akka-user] Re: Source from Sink

2016-09-20 Thread Justin du coeur
Nice!  Took a couple of minutes of poking around to figure out how to set
up draw.io and upload the library, but once done it's nice and easy to
use.  Thanks!

On Tue, Sep 20, 2016 at 11:38 AM, Victor  wrote:

> Here we go!
>
> Just click on the pencil icon in the scratchpad panel and then click on
> Import.
>
> Le mardi 20 septembre 2016 17:32:47 UTC+2, Justin du coeur a écrit :
>>
>> On Tue, Sep 20, 2016 at 9:27 AM, Victor  wrote:
>>
>>> I you want I've created a little library for draw.io with Source, Sink,
>>> Flow, etc. elements to quickly draw flow charts.
>>>
>> Neat!  I suspect that, if you can make that available, lots of people
>> would find it useful.  (Frankly, it would make many conversations here
>> clearer.)
>>
> --
> >> Read the docs: http://akka.io/docs/
> >> Check the FAQ: http://doc.akka.io/docs/akka/
> current/additional/faq.html
> >> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


Re: [akka-user] Re: Source from Sink

2016-09-20 Thread Victor
Here we go!

Just click on the pencil icon in the scratchpad panel and then click on 
Import.

Le mardi 20 septembre 2016 17:32:47 UTC+2, Justin du coeur a écrit :
>
> On Tue, Sep 20, 2016 at 9:27 AM, Victor  > wrote:
>
>> I you want I've created a little library for draw.io with Source, Sink, 
>> Flow, etc. elements to quickly draw flow charts.
>>
> Neat!  I suspect that, if you can make that available, lots of people 
> would find it useful.  (Frankly, it would make many conversations here 
> clearer.) 
>

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


stream.xml
Description: XML document


Re: [akka-user] Re: Source from Sink

2016-09-20 Thread Justin du coeur
On Tue, Sep 20, 2016 at 9:27 AM, Victor  wrote:

> I you want I've created a little library for draw.io with Source, Sink,
> Flow, etc. elements to quickly draw flow charts.
>
Neat!  I suspect that, if you can make that available, lots of people would
find it useful.  (Frankly, it would make many conversations here clearer.)

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


[akka-user] Re: Source from Sink

2016-09-20 Thread Victor
This is what I want to achieve:




I receive an HttpResponse coming from one single TCP connection always 
open, I want to emit ByteString which then are precessed by a JsonFraming 
stage. The problem is that the HTTP entity is a sub-source. I know I could 
simply use runFold on the dataBytes but then I have to deal with a future 
and mapAsync and I don't want to, I want to try another way :)


The broadcast is here to slow down the HttpResponse in-flow.


I hope this is clear, if not don't hesitate to ask questions.

I you want I've created a little library for draw.io with Source, Sink, 
Flow, etc. elements to quickly draw flow charts.


Thank you,

Victor


Le mardi 20 septembre 2016 14:30:46 UTC+2, Victor a écrit :
>
> Hi,
>
> Is it possible to create a Source from a Sink ?
>
> I want every element received in the Sink to be emitted from the Source.
>
> I have to do that because I use a MergeHub and a feedback loop.
>
> Thank you,
> Victor
>

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


[akka-user] Re: Source from Sink

2016-09-20 Thread 'Johannes Rudolph' via Akka User List
Hi Victor,

isn't that the same as the identity flow

`Flow.apply[T]` (or just `Flow[T]`)

?

But maybe I am missing something?
Johannes

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


[akka-user] Re: Source from Sink

2016-09-20 Thread Victor
Akka stream is demand driven but is there a way to create a custom 
FlowShape stage which will redirect sink to source?

Le mardi 20 septembre 2016 14:30:46 UTC+2, Victor a écrit :
>
> Hi,
>
> Is it possible to create a Source from a Sink ?
>
> I want every element received in the Sink to be emitted from the Source.
>
> I have to do that because I use a MergeHub and a feedback loop.
>
> Thank you,
> Victor
>

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.