Re: [akka-user] General Akka Cluster-Singleton question

2016-06-28 Thread Jan Algermissen
Patrik, thanks a lot to clarify - I indeed missed the true 'age' of Akka Cluster Singleton implementation. Jan -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ: >> http://doc.akka.io/docs/akka/current/additional/faq.html >> Search the

[akka-user] General Akka Cluster-Singleton question

2016-06-26 Thread Jan Algermissen
Hi, in a (quite large and turnover significant) project one of the teams has concluded they need per-datacenter singleton semantics to create strictly monotonous timestamps in the microsecond area[1]. The team came up with the idea to use Akka cluster singletons to assure only one clock

[akka-user] akka-http graceful shutdown - what is the effect of ServerBinding#unbind

2016-01-22 Thread Jan Algermissen
Hi, when shutting down an akka-http server I want to gracefully respond to in-flight requests. My assumption is that calling unbind on the ServerBinding returned from Http.bind methods will stop taking new connections from the socket (IOW "detach" the stream Source) process in flight

Re: [akka-user] akka-http Graceful Shutdown with Akka-Agents?

2016-01-21 Thread Jan Algermissen
ther. Makes sense? Jan > > -Endre > > On Wed, Jan 20, 2016 at 8:34 PM, Jan Algermissen <algermi...@me.com > > wrote: > >> Hi all, >> >> >> is there a best practice for graceful shutwdown of akka-http Web >> applications yet? >

[akka-user] akka-http Graceful Shutdown with Akka-Agents?

2016-01-20 Thread Jan Algermissen
Hi all, is there a best practice for graceful shutwdown of akka-http Web applications yet? With 'graceful shutdown' I refer to having the server start returning 503 to new requests after receiving SIGTERM but continue processing the existing ones in a grace period. I was thinking about

Re: [akka-user] akka-http - how to log automatic Bad Request respoonses

2015-12-01 Thread Jan Algermissen
enting the "show", so it shows nicely (and not a raw > bytestring as response body) while you're debugging. > > -- > Cheers, > Konrad 'ktoso’ Malawski > Akka <http://akka.io> @ Typesafe <http://typesafe.com> > > On 26 November 2015 at 08:35:53, Jan Algermissen

[akka-user] akka-http - how to log automatic Bad Request respoonses

2015-11-25 Thread Jan Algermissen
Hi, akka-http sends 400 Bad Request responses automatically for syntactically broken requests. How can log these requests in order to analyse the repsective causes? Jan -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ: >>

[akka-user] Why is aroundReceive protected[akka]?

2015-10-18 Thread Jan Algermissen
Hi, looking at akka-streams ActorPublisher recently, I found the approach to implement actor 'base-behavior' using aroundReceive quite elegant and much more natural than partial function chaining. Is there a reason this approach is limited to Akka internals (aroundReceive is protected[akka])?

[akka-user] "Returning" a value from an ActorPublisher?

2015-10-10 Thread Jan Algermissen
Hi, I am implementing an ActorPublisher that reads records from a database. When the stream is completed I would like to extract some value from the actor (for example the maximum of some field of the records processed). Is there a way to extract such a value from the ActorPublisher once the

Re: [akka-user] "Returning" a value from an ActorPublisher?

2015-10-10 Thread Jan Algermissen
it somehow felt weird - thanks for clearing my mind, in fact it's just fine (using a callback now). Jan > -- > Cheers, > Konrad 'ktoso’ Malawski > Akka <http://akka.io> @ Typesafe <http://typesafe.com> > > On 10 October 2015 at 23:08:36, Jan Algermissen (algermi..