Re: [akka-user] GraphStage instead of ActorPublisher/ActorSubscriber

2017-04-18 Thread Konrad Malawski
I would not call it a stub... it's basically all you need. I see however that you're asking for extend documentation with examples in that section - would you mind opening a ticket on http://github.com/akka/akka about that (Add more examples for integrating with Actors in docs section ...)?

Re: [akka-user] Re: Has akka-http has abandoned per request actors in favor an anti-pattern DSL?

2017-04-18 Thread Konrad Malawski
For starters: It's fine if your preference is to not use the DSL, no one will force you to; and that's also the reason the DSL is a separate artifact. Also, your route here is definitely multiple things and those should be split up. Why make one huge route, make many vals with the small pieces

[akka-user] Re: Has akka-http has abandoned per request actors in favor an anti-pattern DSL?

2017-04-18 Thread kraythe
Sorry, I have been buried with work. The problem with the DSL approach in my opinion is that it leaves too much space for error and strange things happening and at the same time it hamstrings you into a particular flow that may or may not be appropriate to the problem. Just to have some fun,

Re: [akka-user] GraphStage instead of ActorPublisher/ActorSubscriber

2017-04-18 Thread Konrad Malawski
Implement the logic within the GraphStage. It basically behaves like an Actor (but can be fused too). -- Konrad `ktoso` Malawski Akka @ Lightbend On 19 April 2017 at 12:46:23, Richard Rodseth (rrods...@gmail.com) wrote: I've read that ActorPublisher and

[akka-user] GraphStage instead of ActorPublisher/ActorSubscriber

2017-04-18 Thread Richard Rodseth
I've read that ActorPublisher and ActorSubscriber are deprecated in favour of GraphStage, but haven't found examples of how to accomplish this. This section of the documentation is a stub: http://doc.akka.io/docs/akka/2.5/scala/stream/stream-customize.html#Integration_with_actors I have several

Re: [akka-user] Re: enable hostname / domain name on Akka Http for SSL

2017-04-18 Thread Arnout Engelen
Hello, If chrome is saying 'refused to connect', that is a TCP error. Can you check whether your JVM is actually listening on the port you're trying to reach (probably 443, check with 'netstat' for example)? If it's listening, it might be a firewalling/routing issue? Kind regards, Arnout On

Re: [akka-user] Re: enable hostname / domain name on Akka Http for SSL

2017-04-18 Thread Abdeali Chandanwala
Hi Johannes, I have given my code and asked for help on stackoverflow, please check the code you are asking for on this link: http://stackoverflow.com/questions/43468803/ssl-config-or-sslcontext-to-be-used-in-akka-http-ssl-java On Tue, Apr 18, 2017 at 6:32 PM, 'Johannes Rudolph' via Akka User

[akka-user] Re: Analogy between reactive streams and electrical currents

2017-04-18 Thread 'Johannes Rudolph' via Akka User List
I think that's a valid analogy. A while ago we were investigating similar things and also arrived at that analogy. In practice, it turns out that fused streams, i.e. multiple stream components that run in one actor will skew measurements. Not sure how much sense these analogies make when going

Re: [akka-user] Re: Has akka-http has abandoned per request actors in favor an anti-pattern DSL?

2017-04-18 Thread 'Johannes Rudolph' via Akka User List
I think there are a few things that should be treated separately: * How to organize bigger route structures? * How to implement some parts of the route structure as actors? As Roland wrote before, a Route is just an alias for a function `RequestContext => Future[RouteResult]`. This gives you

Re: [akka-user] Re: enable hostname / domain name on Akka Http for SSL

2017-04-18 Thread 'Johannes Rudolph' via Akka User List
Hi, that sounds as if you haven't configured Akka HTTP to open an HTTPS server. It's hard to say though, as you didn't post any code ;) What code did you use to configure Akka HTTP to use HTTPS? Johannes On Tuesday, April 18, 2017 at 2:40:08 PM UTC+2, Abdeali Chandanwala wrote: > > Hi

Re: [akka-user] Facing problems while implementing akka clustering in an e-commerce application.

2017-04-18 Thread Justin du coeur
That code is *very* strange, not at all the way I expect things to be set up. First of all, trying to "get" the cart actor like this is generally not the way you do things in a Cluster Sharded environment. Cluster Sharding allows the actors to rebalance when needed, so it is *not* guaranteed

Re: [akka-user] Re: enable hostname / domain name on Akka Http for SSL

2017-04-18 Thread Abdeali Chandanwala
Hi Arnout, I am not getting error in my logs nor when I do a postmen/chrome request except this: This site can’t be reached dev.domainname.in refused to connect. where-else http protocol works fine with the same deployment On Tue, Apr 18, 2017 at 5:02 PM, Arnout Engelen <

[akka-user] Re: Facing problems while implementing akka clustering in an e-commerce application.

2017-04-18 Thread jatinder . singh
Code to create actor is : def routeMessagesToCart(cart_id: UUID, user_id: UUID): ActorRef = { //Find if actor for the cart already exists,or is Terminated val current_cart_actor = getOrCreateCartActor(cart_id) //is user logged in ? if ("----" !=

Re: [akka-user] Shutting down a ShardRegion

2017-04-18 Thread Arno Haase
Yes, that's what I was missing. Thanks a lot! - Arno Am 18.04.2017 um 13:45 schrieb Patrik Nordwall: > When you start the entity type you can define a handOffStopMessage that > will be sent to the entity actor when it should be stopped because of a > rebalance or graceful shutdown. By default it

Re: [akka-user] Shutting down a ShardRegion

2017-04-18 Thread Patrik Nordwall
When you start the entity type you can define a handOffStopMessage that will be sent to the entity actor when it should be stopped because of a rebalance or graceful shutdown. By default it is PoisonPill, but you can define your own custom message and then the entity actor can complete it's work

Re: [akka-user] Re: enable hostname / domain name on Akka Http for SSL

2017-04-18 Thread Arnout Engelen
Hello, What error do you get when trying to access the https URL? Perhaps verbose 'curl' logging might be helpful? Kind regards, Arnout On Tue, Apr 18, 2017 at 7:39 AM, wrote: > Well I am able to deploy the code to the Server and domain name is > pointing correctly to