Re: [akka-user] how to enable secure tcp socket connection on server side in Akka

2016-12-28 Thread Rafał Krzewski
Gaurav, as Roland wrote above, you cannot just "enable it" in current version of Akka. You need to combine a few components provided by akka-streams module to create an SSL-enabled client or server. Also, you will need to learn the concepts behind Akka Streams because they are very different

[akka-user] Re: [DesignProposal] AKKA cluster in Docker Swarm Environment

2016-12-28 Thread Rafał Krzewski
W dniu środa, 28 grudnia 2016 13:30:23 UTC+1 użytkownik Evgeny Shepelyuk napisał: > > Hello, > > In Docker Swarm when service is created, it's assigned to Virtual IP. I.e. > when I create several instances of *wallet-seed *they will get an single > IP (10.0.0.2, for example), while each of

[akka-user] Re: [DesignProposal] AKKA cluster in Docker Swarm Environment

2016-12-28 Thread Evgeny Shepelyuk
Hello, In Docker Swarm when service is created, it's assigned to Virtual IP. I.e. when I create several instances of *wallet-seed *they will get an single IP (10.0.0.2, for example), while each of container will have own IP (10.0.0.5, 10.0.0.6, 10.0.0.7 and so on) When *wallet-seed* address is

Re: [akka-user] how to enable secure tcp socket connection on server side in Akka

2016-12-28 Thread Gaurav Kumar Jayswal
Hi Roland, I didn't get a way to enable secure TCP socket connection. Can you plz share me some snap of code that how to enable tls in tcp message bind? Regards Gaurav On Friday, 30 September 2016 11:33:23 UTC+5:30, rkuhn wrote: > > The library you’re looking for is Akka Streams, not bare

[akka-user] Re: [DesignProposal] AKKA cluster in Docker Swarm Environment

2016-12-28 Thread Rafał Krzewski
If you can set the IPs of your seed node(s) upfront and put them into configuration of every node all is fine and well. Unfortunately this is not what happens in a dynamic environment, hence the need to elect the seed node before Akka cluster boots up. Cheers, Rafał W dniu środa, 28 grudnia

[akka-user] Re: [DesignProposal] AKKA cluster in Docker Swarm Environment

2016-12-28 Thread Evgeny Shepelyuk
Hello Do you mean that in AKKA cluster there's only one seed node ? I thought AKKA cluster may have several seed node, so new instances can connect to any of them. AKKA documentations show example with multiple seed nodes. середа, 28 грудня 2016 р. 12:48:33 UTC+2 користувач Rafał Krzewski

Re: [akka-user] RESTCONF streaming for events can be enabled on akka.http.

2016-12-28 Thread Rafał Krzewski
Great! Happy hAkking :) W dniu środa, 28 grudnia 2016 02:46:07 UTC+1 użytkownik aarti napisał: > > Thanks Rafal and Konard. I have gone through > https://github.com/hseeberger/akka-sse >

[akka-user] Re: [DesignProposal] AKKA cluster in Docker Swarm Environment

2016-12-28 Thread Rafał Krzewski
Evgeny, The role of etcd / consul / zookeeper in the booting up an Akka cluster is to provide a distributed lock rather than service discovery. When you boot up a number of uniform nodes they need to decide among themselves which one will act as a seed of Akka cluster. The other nodes then join

[akka-user] [DesignProposal] AKKA cluster in Docker Swarm Environment

2016-12-28 Thread Evgeny Shepelyuk
Hello Preface Couple day ago I've asked a question here about possible design for setting AKKA cluster in Docker swarm environment. The main open questions for us is how to discover seed nodes when new container is starting or service is scaled, because Docker assign random internal IPs for

Re: [akka-user] Re: How to stream java 8's CompletionStage

2016-12-28 Thread Guofeng Zhang
That's exactly what I want to know. Thank you very much. On Mon, Dec 26, 2016 at 3:49 PM, Tal Pressman wrote: > Hi, > > Generally speaking, using asynchronous APIs in a stream is achieved by > using mapAsync (or mapAsyncUnordered) instead of map. > > I'm not sure I understand