[akka-user] Should BroadcastHub be lazy?

2017-07-17 Thread James Roper
I'm using a Flow.backpressureTimeout on the incoming flow, and I don't want to have to wait for the broadcast hubs buffer to be filled before the timeout is triggered. If there's agreement that the buffer should be kept empty while there's no consumers, then I'll be happy to submit a PR. Cheers, James -- *James Roper*

Re: [akka-user] Akka Streams Remote Materialization

2017-07-17 Thread James Roper
On Friday, July 14, 2017 at 11:55:22 AM UTC+10, James Roper wrote: > > We need some form a framing over the TCP connection. A lightweight binary > protocol could do it, but an easier and probably good enough solution to > start with is WebSockets with akka-http (to my knowledge akka-

Re: [akka-user] Akka Streams Remote Materialization

2017-07-13 Thread James Roper
I may have some use cases for this, so I've been thinking about what it could look like. Here are my rough thoughts: The problem with using Akka remoting is that it's not a guaranteed transport nor does it provide back pressure - you would have to serialize the requset packets, and then

Re: [akka-user] Threads Processing

2017-06-22 Thread James Matlik
i suspect the issue is related to how you call 'context.system.shutdown()'. Make sure it is called only after all your messages have been processed to completion. As written, it appears to be called after the first message is handled. I'm no expert with actors, but I would guess the reason it

Re: [akka-user] Hot Concat in Akka Streaming Sources?

2017-04-17 Thread James Matlik
I think what you are looking for is a Source that defines your queries, and a `mapAsync (3){/* perform query */}` as that executes the queries in parallel, and returns the results in order. If the result of the mapAsync is collections, you can flatMap to unpack them. If the result is Streams, you

Re: [akka-user] Re: EntityStreamingSupport for two content types

2016-12-02 Thread James Matlik
on this. - James On Dec 2, 2016 8:27 AM, "Martynas Mickevičius" < martynas.mickevic...@lightbend.com> wrote: > James, have you seen this ticket: https://github.com/ > akka/akka-http/issues/424 > > There is an example there, which might help you. > > On Tue, Nov

[akka-user] Re: EntityStreamingSupport for two content types

2016-11-29 Thread James Matlik
. Am I missing something obvious? Much thanks, James On Nov 26, 2016 4:14 PM, "James Matlik" <james.mat...@gmail.com> wrote: > I am trying to create an Akka-HTTP streaming service that supports both > JSON and protobuf. > > I am able to support both for

[akka-user] EntityStreamingSupport for two content types

2016-11-26 Thread James Matlik
best to handle this? Thank you, James -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >&g

[akka-user] Re: Logger specified in config can't be loaded [akka.event.slf4j.Slf4jLogger]

2016-10-23 Thread Andrew James Ramirez
Try doing sbt clean update compile On Thursday, October 20, 2016 at 11:52:48 PM UTC+8, Gerard Vico wrote: > > Hi, > > I am working in a project with Scala and Akka. Two days ago, I can't > launch the test because this error is thrown: > > [WARN] [10/20/2016 15:47:32.743] [pool-1-thread-1]

Re: [akka-user] Re: Akka Streams: Implementing handshake/authentication/etc

2016-09-27 Thread James Matlik
processing it first. You may need to enrich the types at the start of the stream to drive the special handling logic, such as wrapping in 'either' or donation specific case classes. Hope this helps, James On Sep 27, 2016 5:27 AM, <gor...@8kdata.com> wrote: > I am an Akka Stream newbie and

Re: [akka-user] Akka Streams as an ETL tool?

2016-07-25 Thread James Matlik
are submitted? - James On Jul 22, 2016 5:46 AM, "Akka Team" <akka.offic...@gmail.com> wrote: > Hi James > > On Thu, Jul 14, 2016 at 1:22 PM, James Matlik <james.mat...@gmail.com> > wrote: > >> Using Akka streams for ETL is our primary use case. The back pr

[akka-user] Re: actor lookup and restart

2016-07-19 Thread James
Thank you Rob, Another way is to pass the actorRef to a static object, which can be referenced by other instances later. I am wondering which way is better: pass the actoreRef to a class instance or assign the actoreRef to a static attribute in an object. Best, James On Tuesday, July 19

[akka-user] actor lookup and restart

2016-07-18 Thread James
e the best approach to handle this issue to have the class instance got the new restarted actorRef automatically? Thank you very much! James -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ

[akka-user] from spray to akka http - multi layer routes with actors

2016-07-18 Thread James
- We are not quite sure how to do this with new AKKA http since there is no HttpService available any more. Thank you very much! James -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check th

Re: [akka-user] Stream Sinks

2016-07-15 Thread James Matlik
that decides what external entities should be processed, and how many should be run concurrently, isolating failures between them and reporting accordingly. This has worked well for us. Hopefully these ideas may help you as well. - James On Jul 15, 2016 3:10 AM, "AWel" <andy.zelin...@

Re: [akka-user] Akka Streams as an ETL tool?

2016-07-14 Thread James Matlik
Using Akka streams for ETL is our primary use case. The back pressure support has been extremely useful in helping us maximize throughout while at the same time avoid overwhelming the multiple external rest services we query against. By maintaining dedicated, fixed sized dispatcher pools, we can

Re: [akka-user] Pre-fusing and materialization

2016-07-11 Thread James Matlik
. It is a pleasure to work with. Thanks, James On Mon, Jul 11, 2016 at 9:19 AM, Akka Team <akka.offic...@gmail.com> wrote: > FYI: we will work on performance (of the materialization among other > things) the coming weeks. > > Until that is done you probably won't see much difference with any

[akka-user] Pre-fusing and materialization

2016-07-08 Thread James Matlik
incrementally. I would like to minimize the materialization overhead, but don't really know the basic patterns needed to do so. I believe this issue is very similar to that of the short lived connections performance issues the akka-http server is experiencing. Thank you, James

Re: [akka-user] Compiler saying "NotUsed" should be "BoxedUnit"

2016-04-08 Thread James P
e with 2.4.3, etc. They move together now. > > Happy talking! > On Apr 8, 2016 18:43, "James P" <jsp...@gmail.com > wrote: > >> Hi Folks, >> >> I'm trying out the tutorial on Akka Streams (Java) and the following line >> of code from the tutorial: >

[akka-user] Compiler saying "NotUsed" should be "BoxedUnit"

2016-04-08 Thread James P
-and-basics.html Any help would be much appreciated. Thanks. Best regards, James -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/

[akka-user] Creating a Flow[ByteString, T, NotUsed] using java.util.InputStream within

2016-03-14 Thread James Matlik
conversion, but I've come to realize Streams usually provide a safer/cleaner/better way. Finding out what that way is tends to be the big challenge. Thoughts or suggestions? Have I missed something standard and am now reinventing the wheel? Thanks, James -- >>>>>>>>>>

Re: [akka-user] Message ordering for newly instantiated actors

2016-02-16 Thread James P
Got it. Many thanks :D On Tuesday, February 16, 2016 at 12:30:19 PM UTC-8, √ wrote: > > Hi James, > > 1) Message sends are not guaranteed to be delivered (i.e. at-most-once) > 2) B could die/exit before it gets the message from C > 3) C could die/exit before it get

Re: [akka-user] StateData mutability in AbstractFSM

2016-01-29 Thread James P
issue in the > first case. > > -- > Cheers, > Konrad 'ktoso’ Malawski > Akka <http://akka.io> @ Typesafe <http://typesafe.com> > > On 30 January 2016 at 04:47:27, James P (jsp...@gmail.com ) > wrote: > > Hi folks, > > Good da

Re: [akka-user] StateData mutability in AbstractFSM

2016-01-29 Thread James P
talk I'm about to deliver: > // > https://www.evernote.com/l/AAkD5JPO-rVM3J5S7bnd1g_awyWstD8kCOIB/image.png > ;-) > > -- > Cheers, > Konrad 'ktoso’ Malawski > Akka <http://akka.io> @ Typesafe <http://typesafe.com> > > On 30 January 2016 at 09:51:41, James P

[akka-user] StateData mutability in AbstractFSM

2016-01-29 Thread James P
Hi folks, Good day. I'm just starting with Akka (Java with Lambda) and I have a question regarding AbstractFSM. When using "*akka.actor.FSM.State.using(Data)*" does "*Data*" need to be immutable? Example: *when(State.Idle,* * matchEvent(Event.class, StateData.class,* * (event, stateData) ->*

Re: [akka-user] Production Systems Using DistributedPubSub?

2015-07-06 Thread James Carman
wouldn't depend on always being able to gracefully leave the cluster in production! node failures and network partitions are a fact of life. -Michael On 07/06/15 06:08, James Carman wrote: We are considering using the DistributedPubSub support in a production system. We would like

[akka-user] Akka Contrib Contains no OSGi Metadata...

2015-06-06 Thread James Carman
? James -- 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

[akka-user] Re: Akka Contrib Contains no OSGi Metadata...

2015-06-06 Thread James Carman
It looks to be as simple as adding: OSGi.contrib to the sbt file for contrib. Is that all there is to it? On Saturday, June 6, 2015 at 8:37:34 AM UTC-4, James Carman wrote: I am using Akka version 2.3.11 in an OSGi-based project and we tried to add akka-contrib (com.typesafe.akka/akka

Re: [akka-user] Re: Akka Contrib Contains no OSGi Metadata...

2015-06-06 Thread James Carman
/resources/features.xml On Saturday, June 6, 2015 at 9:36:35 AM UTC-4, Konrad Malawski wrote: That's quite possibly the only thing missing. Would you like to submit a PullRequest and we'll look into it there? On Sat, Jun 6, 2015 at 2:40 PM, James Carman jca...@savoirtech.com javascript: wrote

[akka-user] Expect 100-Continue Handling

2015-04-09 Thread James Mulcahy
/dec95e5b1a1d1761a1d8fe65d8eec4dfacffa857#diff-a7b71e1d7cdab9f7bcd7c6ba9f2ae84dR503 - Why does request(1) trigger the 100-Continue response? - Is there any documentation or examples that might be more helpful than what I've already found? Thanks in advance, --James -- Read the docs: http://akka.io/docs/ Check

Re: [akka-user] Implicit value issue for FromRequestUnmarshaller in akka-http with spray-json

2015-03-15 Thread James Mulcahy
I think you need an in-scope implicit FlowMaterializer (or perhaps an ActorFlowMaterializer, if you're on M3. I think that may have been resolved in M4 though) James Sent from my iPhone On Mar 15, 2015, at 15:17, Arthur Kushka arhel...@gmail.com wrote: Hi. I was faced with a typical

[akka-user] akka-http: Completing RequestContext with a Future ?

2015-03-11 Thread James Mulcahy
direction here, please? —James [1] http://doc.akka.io/api/akka-stream-and-http-experimental/1.0-M4/?_ga=1.53285288.1092433602.1423525300#akka.http.server.RequestContext -- Read the docs: http://akka.io/docs/ Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html

[akka-user] akka-http: Completing RequestContext with a Future ?

2015-03-11 Thread James Mulcahy
direction here, please? —James [1] http://doc.akka.io/api/akka-stream-and-http-experimental/1.0-M4/?_ga=1.53285288.1092433602.1423525300#akka.http.server.RequestContext -- Read the docs: http://akka.io/docs/ Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html

Re: [akka-user] system.actorSelection not working when untrusted mode is turned on

2015-03-09 Thread James Brems
? Thanks James -- 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

[akka-user] system.actorSelection not working when untrusted mode is turned on

2015-03-06 Thread James Brems
but I don't want to use it. Seems as if there was already a similar ticket in the past (https://www.assembla.com/spaces/akka/tickets/3665-make-actorselection-working-when-using-untrusted-mode#/activity/). Looks as if the problem still exists or exists again. Regards James Brems -- Read

[akka-user] Akka 2.4-SNAPSHOT that supports Scala 2.11

2015-01-12 Thread Andrew James Ramirez
Hi, I just recently updated to Scala 2.11 and I need some features from 2.4-SNAPSHOT but there is no _2.11-2.4-SNAPSHOT in the repository. Specifically this feature: https://github.com/akka/akka/pull/15610/files Where could I get it? Thanks in advance. -- Andrew -- Read the docs:

[akka-user] Re: Akka 2.4-SNAPSHOT that supports Scala 2.11

2015-01-12 Thread Andrew James Ramirez
Yes the docker probem. Do yo have any solution? without having this fix? On Monday, January 12, 2015 at 8:40:09 PM UTC+8, 何品 wrote: the docker one? 在 2015年1月12日星期一 UTC+8下午4:01:35,Andrew James Ramirez写道: Hi, I just recently updated to Scala 2.11 and I need some features from 2.4-SNAPSHOT

Re: [akka-user] Dependency/Actor Injection without any DI Framework.

2014-12-05 Thread Andrew James Ramirez
in Scala :-) If you'd need moer advanced things you can look at the cake pattern (that's pure scala, but sometimes gets a bit complicated). Hope this helps! On Tue, Nov 25, 2014 at 3:23 PM, Andrew James Ramirez andrewjam...@gmail.com javascript: wrote: Hi, What is the best way to do

[akka-user] Dependency/Actor Injection without any DI Framework.

2014-11-25 Thread Andrew James Ramirez
Hi, What is the best way to do this? Currently what I'm doing is class MainActor(Dependency1:ActorRef, Dependency2:ActorRef) = { def receive ={ case TestMessage = Dependency1 ! Test } } object MainActor{ def props(Dependency1:ActorRef, Dependency2:ActorRef) = Props(classOf[

Re: [akka-user] Akka Persistence 2.3.4 and State machines

2014-10-10 Thread James Bunch
Any update on if/when this likely to be tackled? The github issue seems to have been quiet for a while. Cheers, James -- 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

Re: [akka-user] Empty Snapshot files causes EOFException

2014-05-22 Thread James Brems
Hi Björn, today I found out that the root cause seems to be the length of the fully qualified class name of the snapshot class. If the length (pacakge+class name) exceeds 60 characters an EOFException is thrown instead of calling fromBinary. Here's my reference.conf: akka { actor {

[akka-user] Cluster failure in single JVM

2014-05-22 Thread James Bunch
Can anyone point in the right direction with this one, probably something obvious I'm missing! I'm trying to debug a strange Cluster issue… I have 3 actor systems in a cluster (all in the same JVM) communicating via the distributed bus. (It's just a test app at the moment, and in production

Re: [akka-user] Empty Snapshot files causes EOFException

2014-05-20 Thread James Brems
Hi, I have a similar problem. I am using a custom serializer for serializing a snapshot. (extended from akka.serialization.Serializer): akka { actor { serializers { customSerializer = com.handler.util.CustomSerializer } serialization-bindings {

Re: [akka-user] Smart Batching

2014-05-01 Thread James Bunch
That's ok. I think I'll try the batching pattern (with max size and max latency constraints) described in https://groups.google.com/forum/#!topic/akka-user/todrna9GRS8/discussion It seems to improve throughput substantially - in a quick test over a simulated high latency link. -- Read

Re: [akka-user] Smart Batching

2014-04-30 Thread James Bunch
Thanks, that looks useful. I'm using spray.client at the moment to make the network call (to a web-service). I'm not sure how the akka.io stuff would fit in to this though? -- Read the docs: http://akka.io/docs/ Check the FAQ:

[akka-user] Smart Batching

2014-04-29 Thread James Bunch
Hi All, Has anyone used Akka to implement something akin to the 'Smart Batching' pattern that Martin Thompson describes in this blog post? http://mechanical-sympathy.blogspot.co.uk/2011/10/smart-batching.html I've seen this topic:

[akka-user] Re: Replay Intro to Akka persistence with Patrik Nordwall

2014-03-20 Thread James
Thank you so much! On Thursday, March 20, 2014 7:41:34 AM UTC+8, James wrote: I missed the live, is this going to be available on Yotube? -- Read the docs: http://akka.io/docs/ Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html Search the archives

[akka-user] Replay Intro to Akka persistence with Patrik Nordwall

2014-03-19 Thread James
I missed the live, is this going to be available on Yotube? -- 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

[akka-user] cluster sharding failover

2014-02-17 Thread James Bellenger
Hi gang, a question regarding shard failover Here's my 3-node setup (using akka-2.3.0 rc3): - backend 1 - backend 2 - frontend All nodes initialize ClusterSharding at startup -- frontend supplies an empty entryProps so that it does not host any regions. Frontend starts pinging a range

Re: [akka-user] akka cluster seed nodes on ec2

2014-02-11 Thread James Bellenger
Hi Tim, We have a similar-ish setup over here. We ended up registering all nodes in zookeeper and doing discovery through that. This works well for initial cluster startup as well as nodes joining an existing cluster. It also works well for hybrid environments that are not all on aws. On Tue,

Re: [akka-user] clean cluster exit

2014-02-11 Thread James Bellenger
if this is an issue in cluster sharding, cluster singleton manager in general, or a caveat emptor with using ephemeral ports On Tue, Feb 11, 2014 at 2:36 AM, Akka Team akka.offic...@gmail.com wrote: Hi James, the sequence you describe makes perfect sense to me, and the ClusterSingletonManager

[akka-user] clean cluster exit

2014-02-10 Thread James Bellenger
Hi gang. What is the process for a node to gracefully exit a cluster? Nodes in our system are going through this sequence: - jvm gets the shutdown signal - node calls cluster.leave(cluster.selfAddress) - node waits until it sees MemberRemoved with its own address - node gives