Re: [akka-user] Lookup custom header in response headers

2017-05-08 Thread Greg Methvin
Okay, that makes sense. Thanks Konrad. On Sun, May 7, 2017 at 10:27 PM, Konrad Malawski < konrad.malaw...@lightbend.com> wrote: > To clarify: You'll notice that it does actually work in the routing DSL, > even if you supply a RawHeader it will attempt to extract the typed modeled > header that

Re: [akka-user] Using Akka for Data Synchronization Use Case

2017-05-08 Thread 'Michal Borowiecki' via Akka User List
Hi Santanu, If data consistency is key, please start by thinking carefully about what you mean by consistency. How strong your consistency guarantees actually need to be? I see no reason not to build your system using akka, but be aware that message-driven distributed systems will generally

Re: [akka-user] Lookup custom header in response headers

2017-05-08 Thread Konrad Malawski
I made it work in Scala: https://github.com/akka/akka-http/pull/1103 It's a bit sneaky internally, but I'd be ok with such impl. Sadly it does not translate directly to JavaDSL and that we'll have to deal with in a different style. On Mon, May 8, 2017 at 4:21 PM, Greg Methvin

Re: [akka-user] Confusion in documentation regarding HTTPS support in Akka HTTP

2017-05-08 Thread Konrad Malawski
My guess right now is that they do the same thing but the part under SSL-Config sets up the system default HttpsContext, is this correct? Yes, that's the case. SSLConfig is merely a helper utility you can use to easily set up things. You can not use it if you don't want to. -- Konrad `ktoso`

Re: [akka-user] Confusion in documentation regarding HTTPS support in Akka HTTP

2017-05-08 Thread Henrik Larsson
Ok thanks, so far I have found this example wich i guess i can make work on the client side also https://github.com/rklaehn/akkahttpsserver/blob/master/src/main/scala/httpsserver/Server.scala However I would like to send the key and crt separate and in the exampel they use p12. Is there any

Re: [akka-user] Confusion in documentation regarding HTTPS support in Akka HTTP

2017-05-08 Thread Konrad Malawski
It's plain Java, configure the SSLContext as usual and provide it to the HttpsConnectionContext. -- Konrad `ktoso` Malawski Akka @ Lightbend On 8 May 2017 at 15:18:21, Henrik Larsson (favetelingu...@gmail.com) wrote: Ok thanks, so far I have found this

Re: [akka-user] Confusion in documentation regarding HTTPS support in Akka HTTP

2017-05-08 Thread Konrad Malawski
Sure, explore it's parameters (HttpsConnectionContext) :-) -- Konrad `ktoso` Malawski Akka @ Lightbend On 8 May 2017 at 19:52:09, Henrik Larsson (favetelingu...@gmail.com) wrote: Nice thanks I got it working now! However is there a way to set HTTPS

Re: [akka-user] Confusion in documentation regarding HTTPS support in Akka HTTP

2017-05-08 Thread Konrad Malawski
As documented: * If an explicit [[ConnectionContext]] is given then it rather than the configured default [[ConnectionContext]] will be used * for setting up the HTTPS connection pool, if the request is targeted towards an `https` endpoint. -- Konrad `ktoso` Malawski Akka @

Re: [akka-user] Confusion in documentation regarding HTTPS support in Akka HTTP

2017-05-08 Thread Henrik Larsson
Nice thanks I got it working now! However is there a way to set HTTPS settings on the Http().singleRequest? The docs says it uses the default but i just want to set the HTTPS setting on this speficic request, all others should have another setting. On Monday, May 8, 2017 at 8:19:19 AM UTC+2,

Re: [akka-user] Akka Cluster Failing for Huge Data File

2017-05-08 Thread Kunal Ghosh
Thanks @Patrik Your help is much appreciated !! Below are my configuration for Kryo Serialization and Artery remote implementation in application.conf file. Please go through it and tell me whether is it correct ?? Also I have a question that changing configuration is enough or I will have

Re: [akka-user] Akka Cluster Failing for Huge Data File

2017-05-08 Thread Patrik Nordwall
the port number for the seed-nodes does not match canonical.port = 25520 replacing akka.tcp with akka is correct, and if you have that in the code somewhere it must be changed there also On Mon, May 8, 2017 at 2:36 PM, Kunal Ghosh wrote: > Thanks @Patrik Your help is

Re: [akka-user] Idiomatic way to verify that a task will be performed by a single actor in a cluster

2017-05-08 Thread Avi Levi
Thanks !!! this is exactly what I was looking for Sincerely, Avi Levi m: +972-52-3459959 https://il.linkedin.com/in/leviavi 2017-05-08 7:44 GMT+03:00 Patrik Nordwall : > No, use Cluster Singleton http://doc.akka.io/docs/akka/ >

[akka-user] Re: [akka-cluster] ClusterClient and ConstructR

2017-05-08 Thread RafaƂ Krzewski
Hi Evgeny, In such situation I'd use de.heikoseeberger.constructr.coordination.Coordination (it's subclass specific for the data store you are using) on the nodes outside the cluster that need to look up contact points. You can call Coordination.getNodes() and if None comes back, wait some

[akka-user] Restart stream with backoff

2017-05-08 Thread Richard Rodseth
I was hoping to promote a pattern in my organization, using reactive-kafka (source-per-partition). Some of my colleagues are comfortable with actors, but it would be great if others could be introduced to the streams APIs without learning all about actors. Am I correct that there is currently no