Re: [akka-user] The mapAsync and the mapAsyncUnordered an unexpected behavior

2015-02-27 Thread Boris Lopukhov
Thanks for response! I created issue https://github.com/akka/akka/issues/16959 пятница, 27 февраля 2015 г., 13:54:35 UTC+4 пользователь drewhk написал: Hi Boris, On Fri, Feb 27, 2015 at 10:41 AM, Boris Lopukhov 89b...@gmail.com javascript: wrote: I have a simple actor publisher: class

[akka-user] [akka-stream] Periodic source of sources

2015-01-22 Thread Boris Lopukhov
Hi all! How can i do a Source[Source[String]] that periodically emit the Source[String] with the specified interval, but only if the previous Source[String] is complete? -- Read the docs: http://akka.io/docs/ Check the FAQ:

Re: [akka-user] Re: [akka-streams] ActorPublisher-based Source

2014-11-19 Thread Boris Lopukhov
in mapConcat? I am using version 0.11 вторник, 18 ноября 2014 г., 17:29:54 UTC+4 пользователь Boris Lopukhov написал: No, the actor system is alive. Additionally, i have repeated that code many times with the same result: for (i - 1 to 10) { Source(list).mapConcat(x = x).runWith

[akka-user] Re: [akka-streams] ActorPublisher-based Source

2014-11-18 Thread Boris Lopukhov
I have isolated the problem, it seems that ActorPublisher is not the cause: val list = List.range(1, 21).grouped(5).toList Source(list).mapConcat(x = x).runWith(ForeachSink(println)) expectation: 1..20 reality: 1..16 понедельник, 17 ноября 2014 г., 19:46:58 UTC+4 пользователь Boris

Re: [akka-user] Re: [akka-streams] ActorPublisher-based Source

2014-11-18 Thread Boris Lopukhov
the actor system prematurely? /Patrik On Tue, Nov 18, 2014 at 1:24 PM, Boris Lopukhov 89b...@gmail.com javascript: wrote: I have isolated the problem, it seems that ActorPublisher is not the cause: val list = List.range(1, 21).grouped(5).toList Source(list).mapConcat(x = x).runWith

[akka-user] [akka-streams] ActorPublisher-based Source

2014-11-17 Thread Boris Lopukhov
Hi everyone! I am trying to create a stream with an ActorPublisher: class SourceActor extends ActorPublisher[List[Int]] { import akka.stream.actor.ActorPublisherMessage.Request var list = List.range(1, 21).grouped(5).toList // for example def receive = { case Request(elems) = while

Re: [akka-user] [akka-streams] Merge different count of sources

2014-11-13 Thread Boris Lopukhov
√ написал: Skip the merge if you only have 1 source? On Thu, Nov 13, 2014 at 10:34 AM, Boris Lopukhov 89b...@gmail.com javascript: wrote: Hi everyone! I have one or a few databases from which I want to download and process data. I would like to merge all sources and work with result flow

Re: [akka-user] [akka-streams] Merge different count of sources

2014-11-13 Thread Boris Lopukhov
can import that one and write: val mergedSource = sources.merge() On Thu, Nov 13, 2014 at 3:30 PM, Boris Lopukhov 89b...@gmail.com javascript: wrote: Then, I want to create the mergedSource: val mergedSource = sources match { case List(source) = source case manySources

[akka-user] [akka-stream] Control flow question

2014-10-15 Thread Boris Lopukhov
I need to write a simple application that reads rows from the table of the postgres, indexes them in elasticsearch and if successful records in postgres that data has been indexed. Rows have sizes of about 1 Kbyte to 100MB. I'm trying to solve this with the akka-stream:

Re: [akka-user] [akka-stream] Control flow question

2014-10-15 Thread Boris Lopukhov
, Boris Lopukhov 89b...@gmail.com javascript: wrote: I need to write a simple application that reads rows from the table of the postgres, indexes them in elasticsearch and if successful records in postgres that data has been indexed. Rows have sizes of about 1 Kbyte to 100MB. I'm trying

Re: [akka-user] [akka-stream] Some problems with ThunkSource

2014-10-07 Thread Boris Lopukhov
. /Patrik On Mon, Oct 6, 2014 at 5:51 PM, Boris Lopukhov 89b...@gmail.com javascript: wrote: Hello, I wrote this code: import akka.actor.ActorSystem import akka.stream.scaladsl2.BlackholeSink import akka.stream.scaladsl2.FlowFrom import akka.stream.scaladsl2.FlowMaterializer import

[akka-user] [akka-stream] Some problems with ThunkSource

2014-10-06 Thread Boris Lopukhov
Hello, I wrote this code: import akka.actor.ActorSystem import akka.stream.scaladsl2.BlackholeSink import akka.stream.scaladsl2.FlowFrom import akka.stream.scaladsl2.FlowMaterializer import akka.stream.scaladsl2.ThunkSource object Main extends App { implicit val system = ActorSystem()