Hi Juanjo,

I would recommend following the example set by akka.stream.io package which
adds four Sources/Sinks that deal with IO.

So you might provide an object for every Source or Sink that has factory
methods for Scala and Java as it is done, for example, for InputStreamSource
<https://github.com/akka/akka/blob/21d08ece22f66b43765b1aaab1377e09b98a207d/akka-stream/src/main/scala/akka/stream/io/InputStreamSource.scala#L17>
.

Then, optionally, you could provide and implicit conversion from
akka.stream.scaladsl.Source that allows to use your custom Source or Sink
seamlessly. Here
<https://github.com/akka/akka/blob/21d08ece22f66b43765b1aaab1377e09b98a207d/akka-stream/src/main/scala/akka/stream/io/Implicits.scala#L36-L38>
how it is done for InputStreamSource.

Looking forward for flows/sources/sinks that you come up with. :)

On Thu, Aug 20, 2015 at 12:54 PM, Juan José Vázquez Delgado <
[email protected]> wrote:

> Hi all,
>
> In my development shop we're currently having to develop or expand some
> Akka Streams features in the form of sources, flows and sinks. Some of this
> building blocks could be shared, for instance a source that deals with
> zipped files containing other zipped files, etc. However, we don't know if
> there're some templates or at least best practices that we should follow in
> order to share this work.
>
> In other words, is it planned to have, in the short term, some kind of
> sandbox or extension project?. In the past, I've been comfortable for
> instance sharing extensions with the Apache Camel team where you have some
> kind of standard way to do this.
>
> Thanks in advance,
>
> Juanjo
>
> --
> >>>>>>>>>> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Martynas Mickevičius
Typesafe <http://typesafe.com/> – Reactive
<http://www.reactivemanifesto.org/> Apps on the JVM

-- 
>>>>>>>>>>      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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to