Re: [akka-user] Streams, Flows, and integrating an external flow

2014-12-12 Thread Roland Kuhn
Hi Brandon, an SSL element has a little more complex structure: it has two inputs and two outputs and they are all connected via the SslEngine. We’ll provide such bidirectional Flow elements soon (they will be like PartialFlowGraphs internally), but if you want to play with it then you might lo

[akka-user] Streams, Flows, and integrating an external flow

2014-12-12 Thread Brandon Arp
I'm working on implementing an TLS/SSL client using the Akka streams and http components, but I've run into a bit of a snag. My overall approach is to open a TCP stream, create an SslTlsCipher (from a SslTlsCipherActor), modify the tcp flow to include the encryption/decryption steps, then tran

Re: [akka-user] Create an FSM actor outside a cluster and initialize it with references to another actors in the cluster

2014-12-12 Thread Eugene Dzhurinsky
Hi, Björn! Thanks for the response. The biggest problem is that the original system was developed without any clustering in mind - so on every request from the client, a new FSM actor is created, some pre-defined references to worker actors are passed to the FSM actor and then it orchestrates

Re: [akka-user] Using ssl and tls with akka 2.3.7

2014-12-12 Thread Pavel Popov
Thank you for reply. But I don't understand the reason: why it was moved to streams, instead of being a part of IO? But from user's perspective It will be predictable to find SSL listener inside IO package, not somewhere else... On Fri, Dec 12, 2014 at 4:00 PM, Björn Antonsson < bjorn.antons...@t

[akka-user] Re: Cluster failover: preloaded actors

2014-12-12 Thread Ketil Johannessen
Hi, would it be possible to implement this by using the event stream in the akka-persistence module? For instance by creating a plugin implementing the persistence plugin api, but instead of persisting events to storage, replaying these to passive nodes in the cluster so all nodes are in a cons

Re: [akka-user] Using Actors as domain entity (DDD)

2014-12-12 Thread Björn Antonsson
Hi Manuel, Have you looked at the cluster sharding contribution?  http://doc.akka.io/docs/akka/2.3.7/contrib/cluster-sharding.html It passivates entities if they are idle for too long and bring them back when they get new messages. There is also an activator template that showcase it: http://typ

Re: [akka-user] Create an FSM actor outside a cluster and initialize it with references to another actors in the cluster

2014-12-12 Thread Björn Antonsson
Hi, The best way to communicate into the cluster is using the cluster client. References to actors inside the cluster are normal remoting references and if the node that your reference points to goes down, then your actor ref becomes useless. Instead you should try to think of things in the cl

[akka-user] Using Actors as domain entity (DDD)

2014-12-12 Thread manuel rascioni
Hi everyone, I'm pretty new to the actor system and akka, so my question could seems stupid... I was thinking about using actors as entities of my domain, I would like to implement a system to send messages to a single component and it will deliver messages to the right actor (creating it if i

Re: [akka-user] Resolving Circular Actor Dependency with Injection Example

2014-12-12 Thread Björn Antonsson
Hi David, So from your code, there is no parent actor, only an app, but maybe you plan to have some kind of actor being a parent at a later stage. The initalization seems really convoluted. If you know the realtive position in the actor hierarchy or the absolute paths you could maybe explore ac

Re: [akka-user] Using ssl and tls with akka 2.3.7

2014-12-12 Thread Björn Antonsson
Hi Paul, SSL/TLS support in akka will be part of the akka streams work that is ongoing right now. The aim is to have it available by Q1 2015. B/ On 11 December 2014 at 15:36:36, pa...@blackopsdev.com (pa...@blackopsdev.com) wrote: Hello, everyone! I'm using akka.io 2.3.7 and I don't see any S

Re: [akka-user] akka-http / routing DSL: How to set response content type?

2014-12-12 Thread André
Hi Jo, as Björn and Mathias exlained there's no need to set the Content-Type explicitly. Just import ScalaXmlSupport and complete with a NodeSeq (example ) or alternatively impli

[akka-user] Re: Kamon metrics on Akka actors in New Relic

2014-12-12 Thread Vlad Oprisa
I would not see a problem on putting the information in the UI. Just define another dashboard for that app with the metrics and fields you need. Can you please give a summary on what comes with payed support? I would pay to Newrelic or Kamon? Thanks, Vlad On Tuesday, December 9, 2014 3:28:18 PM