Re: [akka-user] [Akka Stream 2.0-M1] Quick blog post

2015-11-07 Thread Konrad Malawski
Nice post, thanks for sharing! :-) --  Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 7 November 2015 at 12:41:50, Gabriel Volpe (volpegabr...@gmail.com) wrote: The previous project was updated and the changes were pretty straight forward. https://partialflow.wordpress.com/2015/11/07/akka-s

Re: [akka-user] DeleteMessages in Akka Persistence

2015-11-08 Thread Konrad Malawski
Yes it should. It's "delete messages to sequence nr 12". We have tests for it in the TCK, but it's up to the Journal implementations to corrently implement this. Which journal impl are you talking about? By the way, these things are very simple to check for yourself - just write a test which do

Re: [akka-user] Re: Akka Stream and Http 2.0-M1 Released!

2015-11-08 Thread Konrad Malawski
one you should be able to figure out how to translate your Flexi things. There will be an M2 soon, then we'll explain in detail how to migrate from Flexi things. Hope this helps! --  Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 7 November 2015 at 01:23:17, Konrad Mala

Re: [akka-user] AKKA Http directive support for patch

2015-11-10 Thread Konrad Malawski
Hi David, It's there already though :-) Docs:  http://doc.akka.io/docs/akka-stream-and-http-experimental/2.0-M1/scala/http/routing-dsl/directives/method-directives/patch.html /** * Rejects all non-PATCH requests. */ def patch: Directive0 = _patch --  Cheers, Konrad 'ktoso’ Malawski Akka @ Type

Re: [akka-user] AKKA Http directive support for patch

2015-11-10 Thread Konrad Malawski
ry thank you, I should have looked better. I am just getting started > and when looking for patch I might have been looking at some older > documentation. > > Thanks > > On Tuesday, November 10, 2015 at 12:22:12 PM UTC-5, Konrad Malawski wrote: >> >> Hi David, >&

[akka-user] Re: [scala-user] Re: Akka Stream and Http 2.0-M1 Released!

2015-11-10 Thread Konrad Malawski
Hi Gary, (I think I replied to this already, but maybe you're only on scala-user and not akka-user? Sorry for duplicated email everyone else). yes, you should read the AsyncStage => GraphStage migration: http://doc.akka.io/docs/akka-stream-and-http-experimental/2.0-M1/scala/migration-guide-1.0-2.

Re: [akka-user] [akka-http] An issue with spay-son and collections

2015-11-11 Thread Konrad Malawski
Usually one would do something like this: trait MyModelJsonProtocol extends DefaultJsonProtocol {   implicit val feedFormat = jsonFormat2(Feed) } object MyModelJsonProtocol extends MyModelJsonProtocol And use it like so: trait MyHelloWorldRoute extends MyModelJsonProtocol = {   val route = compl

Re: [akka-user] Re: I get strange error with 2.0-M1

2015-11-15 Thread Konrad Malawski
Hi all, thanks for trying out the early Milestone and reporting the problem! We believe there is a bug in how the idle timeout was added, not sure if that specific problem is a manifestation of it, but we'll add more tests and fixes for idle timeouts in M2 (coming out soon), please keep an eye ou

Re: [akka-user] Akka-streams TLS-PSK support

2015-11-16 Thread Konrad Malawski
Hi Chris, Jim responded quicker than I managed to; thanks! :-) I'll add a bit more positive hints to the above suggestion, it seems that BouncyCastle does implement the cipher you're after: https://github.com/bcgit/bc-java/blob/dd3d4c4ffe31296e231e9075a26c72b399be3f05/core/src/main/java/org/bouncy

Re: [akka-user] Play application with http / streams at 2.0-M1 fails to "run".

2015-11-17 Thread Konrad Malawski
Play is not compatible with Akka Streams "2.0-M##" yet - it's a development milestone, not a release you can expect all libs to be ready for already. Please wait until Akka Streams "2.0" is released at which point Play will be updated to work with it. --  Cheers, Konrad 'ktoso’ Malawski Akka @ 

Re: [akka-user] [akka-http] problem with multiple client requests using singleRequest

2015-11-20 Thread Konrad Malawski
ork > around the bug? > > On Fri, Nov 20, 2015 at 6:51 PM, Konrad Malawski > wrote: > > Hi Rudiger, > > Yes it's a bug (two separate ones even, another thing you'll notice is > > actors leaking). > > And good news - we tracked it down and fixed it today! W

Re: [akka-user] [akka-http] problem with multiple client requests using singleRequest

2015-11-20 Thread Konrad Malawski
Hi Rudiger, Yes it's a bug (two separate ones even, another thing you'll notice is actors leaking). And good news - we tracked it down and fixed it today! Will be released in M2 which will be released early next week. Thanks for reporting! On Nov 20, 2015 18:47, "rklaehn" wrote: > Hi All, > > I

Re: [akka-user] [akka-http] problem with multiple client requests using singleRequest

2015-11-20 Thread Konrad Malawski
Right; "this isn't rocket science" (-; All feedback is very welcome though Rudiger, please let us know if anything is non obvious or undocumented! --  Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 20 November 2015 at 19:08:44, Konrad Malawski (konrad.malaw...@

Re: [akka-user] Re: Beginner's question: working with Futures inside Akka-HTTP 2 based API.

2015-11-22 Thread Konrad Malawski
Awesome reply, thanks Tim! We also have this documented (though for spray-json instead of play-json) in our docs here: http://doc.akka.io/docs/akka-stream-and-http-experimental/2.0-M1/scala/http/common/json-support.html Hope this helps! --  Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 22

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

2015-11-26 Thread Konrad Malawski
Hi Jan, sure!  Here's how:  http://doc.akka.io/docs/akka-stream-and-http-experimental/2.0-M1/scala/http/routing-dsl/directives/debugging-directives/logRequest.html#logrequest I recommend implementing the "show", so it shows nicely (and not a raw bytestring as response body) while you're debugging

Re: [akka-user] Transaction on same object processed by same actor

2015-11-28 Thread Konrad Malawski
You should read up on cluster sharding: http://doc.akka.io/docs/akka/current/scala/cluster-sharding.html Such "to the same Actor, given an identifier" is exactly what it is designed for. --  Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 28 November 2015 at 11:59:52, Karthik Deivasigamani (

Re: [akka-user] Conditionally applying NotInfluenceTimeoutReceive

2015-12-01 Thread Konrad Malawski
Hi Rob, The marker trait NotInfluenceReceiveTimeout strictly works "for the given message type". You can not plug in logic as to when it should or should not influence the receive timeout - it would be really tricky and weird to represent. Instead you should model your timers explicitly, using `

Re: [akka-user] Disable relative URI parsing in Akka HTTP?

2015-12-01 Thread Konrad Malawski
Did you see: # Enables/disables the addition of a `Raw-Request-URI` header holding the # original raw request URI as the client has sent it. akka.http.server.raw-request-uri-header = off Perhaps it would address your need? --  Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 1 December 2015 a

Re: [akka-user] Transaction on same object processed by same actor

2015-12-02 Thread Konrad Malawski
nt and ran into some issues. So wanted to know if non-persistent actors are supported. Thanks, Karthik On Saturday, November 28, 2015 at 3:47:22 AM UTC-8, Konrad Malawski wrote: You should read up on cluster sharding: http://doc.akka.io/docs/akka/current/scala/cluster-sharding.html Such &qu

Re: [akka-user] Re: Akka persistence query examples

2015-12-10 Thread Konrad Malawski
On Thu, Dec 10, 2015 at 7:53 AM, Alan Johnson wrote: > I'm new to this space, but yes, it seems to me like the read store should > store lastProcessEventNr someplace, ideally updated in the same transaction > that updates the view. Welcome to the community then :-) Yup, that's exactly the idea,

Re: [akka-user] [akka-http] performance improvements in 2.0

2015-12-10 Thread Konrad Malawski
Hi Giovanni, "We're working on it". M2 has the parts needed to enable stream fusing. Currently we're working on enabeling it for the most complex pipelines – the Akka HTTP pipeline. 2.0 will be out before x-mas, it's a time based release. We're expecting those changes to be in it. We're not spe

Re: [akka-user] Can't build from source

2015-12-10 Thread Konrad Malawski
We have not changed our build process so it's the same as a year ago, sure :-) It is documented here:  http://doc.akka.io/docs/akka/snapshot/dev/building-akka.html including the option to disable diagrams if you need to. --  Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 10 December 2015 at

Re: [akka-user] Re: Streaming http call gives EntityStreamSizeException (2.0-M2)

2015-12-18 Thread Konrad Malawski
It's a feature. (yes, really) :-) Allow me to explain; Akka HTTP always opts on the safe side of things. For example, if you write an endpoint that can get POST data, and someone (an attacker) sends you data and it never ends sending... You do want to kill that connection as soon as you notice so

Re: [akka-user] Re: Streaming http call gives EntityStreamSizeException (2.0-M2)

2015-12-18 Thread Konrad Malawski
fine though. Thanks, Jeroen Op vrijdag 18 december 2015 14:17:47 UTC+1 schreef Konrad Malawski: It's a feature. (yes, really) :-) Allow me to explain; Akka HTTP always opts on the safe side of things. For example, if you write an endpoint that can get POST data, and someone (an attacker)

[akka-user] ANNOUNCE: Akka Streams & Http 2.0 released!

2015-12-21 Thread Konrad Malawski
Akka Streams since it has hit 1.0 a few months ago: commits added removed 8078222022 Konrad Malawski 7158031316 Johannes Rudolph 4252921142 Alexander Golubev 3279543082 Mathias 2739324035 Viktor Klang 26 106343554 Endre Sándor Varga

Re: [akka-user] Re: ANNOUNCE: Akka Streams & Http 2.0 released!

2015-12-21 Thread Konrad Malawski
Correct, as has been forecasted for Akka itself in December 2014 – https://www.typesafe.com/blog/akka-roadmap-update-dec-2014 and is the case for Akka 2.4.x currently – we require JDK8 moving forward. The 2.0.x series of Akka Streams and HTTP is the last one available for pre-JDK8. We did both us

Re: [akka-user] Fusing in akka-streams 2.0

2015-12-22 Thread Konrad Malawski
I'll leave the semantics questions to Roland or Endre to tackle (in general it should not change semantics), but a few quick ones: 2. how to insert async boundaries in linear pipelines? E.g.: Source(List(1, 2, 3))       .map(_ + 1)            .addAttributes(Attributes.asyncBoundary)       .map

Re: [akka-user] Fusing in akka-streams 2.0

2015-12-23 Thread Konrad Malawski
FYI, Roland's docs update merged: https://github.com/akka/akka/pull/19268 I'll release 2.0.1 today as we found a bug in InputStreamPublisher. --  Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 23 December 2015 at 09:14:58, Adam Warski (a...@warski.org) wrote: :-) But you are right, even th

Re: [akka-user] [akka-stream] Wait until two sinks are completed

2015-12-23 Thread Konrad Malawski
You need the s1 and s2 values to "contribute to the materialized value of graph". Please read this section of the docs:  http://doc.akka.io/docs/akka-stream-and-http-experimental/2.0/java/stream-composition.html then:  http://doc.akka.io/docs/akka-stream-and-http-experimental/2.0/java/stream-graph

Re: [akka-user] Akka PersistenceQuery java example

2015-12-23 Thread Konrad Malawski
Hi Jan, please read about Akka Persistence. >From your code snippet it's not possible to say if the events are persisted under the persistenceId "persistentActor-4-java" or not. What's the def persistenceId in the Actor look like? What is not working in the example you pasted? -- Konrad On Wed,

[akka-user] [ANNOUNCE] Akka Streams & HTTP 2.0.1 released!

2015-12-23 Thread Konrad Malawski
Aclosed> milestones on github for your reference. Credits We would like to thank Mathias Bogaert for swiftly trying out the latest release and submitting a small improvement to HTTP’s domain model, thanks! commits added removed 8 228 82 Konrad Malawski 3 619 38 Rolan

Re: [akka-user] Migrating to akka stream 2.0.1, tests throw assertion error "`remaining` may not be called outside of `within`"

2015-12-23 Thread Konrad Malawski
This sounds a bit weird... I don't think those changed that much in the move to 2.0. Could you make the problem example a gist (gist.github.com or complete snippet in email, ready to copy/paste) I could downlaod and quickly have a look? Thanks in advance! --  Cheers, Konrad 'ktoso’ Malawski Akk

Re: [akka-user] Update http routes

2015-12-24 Thread Konrad Malawski
Not built in but doable, see  https://github.com/movio/spray-dynamic-routing-example for inspiration. You should be able to translate it to Akka HTTP. --  Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 24 December 2015 at 10:17:23, greg.kam...@bcgdv.com (greg.kam...@bcgdv.com) wrote: Hi, f

Re: [akka-user] Re: akka-http how to set global timeout for http services

2015-12-24 Thread Konrad Malawski
Grep the rederence.conf of Akka http core for 'idle-timeout'. We also have it documented AFAIR, but not at my laptop now. On Dec 24, 2015 15:00, "Richard Grossman" wrote: > Hello > > I see that nobody answer to this > Any news ? > > On Tuesday, November 10, 2015 at 8:04:37 PM UTC+2, Richard Gross

Re: [akka-user] Re: akka-http how to set global timeout for http services

2015-12-24 Thread Konrad Malawski
Sorry, I've misread your question - you mean a request-timeout. I'm not sure from the top of my head, will revisit this after christmas dinner. I quickly grepped and it may be missing still, could you open a ticket for this? On Thu, Dec 24, 2015 at 3:02 PM, Konrad Malawski <

Re: [akka-user] Aggregate counts in multi-jvm testing

2015-12-24 Thread Konrad Malawski
You're in a distributed system – how would you do it there? "The Akka way" of doing it is messaging :-) Send a message to the "cluster actor", which each JVM has,  from the same sender, collect the replies, once you got all of them (and you know, because you know how many questions you've sent),

Re: [akka-user] Aggregate counts in multi-jvm testing

2015-12-25 Thread Konrad Malawski
Without going much deeper – I certainly wouldn't add any of these to a project just to get a CRDT counter ;-) Also, we have those too:  http://doc.akka.io/docs/akka/snapshot/scala/distributed-data.html :-) --  Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 25 December 2015 at 11:22:07, Guido

Re: [akka-user] Aggregate counts in multi-jvm testing

2015-12-25 Thread Konrad Malawski
After having consulted a number of customers who included or previously-had hazlecast clusters along with  Akka apps I remain unconvienced what hazlecast added to the table (other than - "yet another cluster, with different and detached lifecycle to manage"). I'd avoid adding more separate indepe

Re: [akka-user] Aggregate counts in multi-jvm testing

2015-12-27 Thread Konrad Malawski
rovides distributed data, but it's still experimental. Moreover, it doesn't seem to provide functionalities like locking or queries. The data is also replicated on all nodes which can be too much redundancies (or is it configurable?). On Friday, December 25, 2015 at 8:13:18 AM UTC-6, Konra

Re: [akka-user] Aggregate counts in multi-jvm testing

2015-12-28 Thread Konrad Malawski
API simplicity is one thing – runtime, failure and recovery semantics are another, that's there the dragon lies. My only point here is, that it's tricky to have 2 clusters being running in the same jvm, because there's much more failure scenarios you suddenly have to think about:  - what if Akka

Re: [akka-user] Aggregate counts in multi-jvm testing

2015-12-28 Thread Konrad Malawski
But now, there's one thing that I'm not too happy about: both distributed pubsub and distributed data seem to replicate all data onto all nodes instead of spreading out to the cluster.  That's not true – pubsub only sends data to such nodes, which subscribed to a given topic. If all people are

Re: [akka-user] GraphDSL.create is not visible for IDE

2015-12-28 Thread Konrad Malawski
.create() is a normal method on the companion - it should just work. Did you find out what the problem was? --  Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 25 December 2015 at 01:19:15, Anton Kulaga (antonkul...@gmail.com) wrote: Hi. I updated my project to akka-http-experimental 2.0.1 I

Re: [akka-user] Bounded Mailboxes and throttling

2015-12-28 Thread Konrad Malawski
Hi Jochen, The bounded mailboxes are designed around the idea that in Akka delivery is at-most-once in any case (because network, and no re-delivery – unless you use AtLeastOnceDelivery or do it yourself). So yeah, they're protecting the receiver, nothing more - it's not a full-blown flow-contro

Re: [akka-user] Aggregate counts in multi-jvm testing

2015-12-29 Thread Konrad Malawski
d your answers have been great help. Thanks a lot! Alex PS. This seems to be very off topic from the original question.  Should I start a new thread? On Monday, December 28, 2015 at 4:16:45 AM UTC-6, Konrad Malawski wrote: But now, there's one thing that I'm not too happy about: both di

Re: [akka-user] Akka cluster seed nodes sequence

2015-12-30 Thread Konrad Malawski
Please read up on the Akka Cluster documentation: http://doc.akka.io/docs/akka/snapshot/java/cluster-usage.html Quote: The seed nodes can be started in any order and it is not necessary to have all seed nodes running, but the node configured as the first element in the  seed-nodes configuration

Re: [akka-user] akka-http: access to httpresponse

2016-01-05 Thread Konrad Malawski
Hi there, You're the one creating the HttpResponse directly if you want to modify it, see: import akka.http.javadsl.model.*; return ctx.complete( HttpResponse.create() .withEntity(HttpEntities.create("example")) .addHeader(Location.create("http://akka.io";))); Happy hakking! --  Cheers

[akka-user] Re: akka-http: access to httpresponse

2016-01-05 Thread Konrad Malawski
I improved the docs slightly to show this style of completing as well: https://github.com/akka/akka/pull/19350 -- Konrad -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ: >> http://doc.akka.io/docs/akka/current/additional/faq.html >> Sear

Re: [akka-user] akka-http: SSL disableHostnameVerification issue

2016-01-05 Thread Konrad Malawski
Hi Arnaud,  Thanks for reporting. Obligatory disclaimer: disabling hostname verification is a very bad idea, please don't. I looked into it and it's a mix of issues actually... ssl-config should be improved, but that's not what's causing your error actually. Since you're on JDK8, hostname veri

Re: [akka-user] Re: ClassCastException when persisting events using akka-persistence

2016-01-05 Thread Konrad Malawski
Do you have some collections involved in the pattern match perhaps? Show us your receiveCommand / receiveRecover. --  Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 5 January 2016 at 15:55:18, matheusl...@sagaranatech.com (matheusl...@sagaranatech.com) wrote: Sorry, I've read fast your code

Re: [akka-user] Recommended Seed Node Number

2016-01-07 Thread Konrad Malawski
Konrad, thanks for the quick reply.  Our nodes are similar (receive same traffic on same hardware).  We have frontend and backend node roles (10 FE, 16 BE).  Does 4 nodes (2 from each role) sound reasonable?  Seed nodes are just "the nodes to which a new node talks to in order to join the cluste

Re: [akka-user] Where is the akka-http source code online?

2016-01-09 Thread Konrad Malawski
They're on a branch, documented here currently:  https://github.com/akka/akka/blob/master/CONTRIBUTING.md#branches-summary The branch is `release-2.3-dev`, it's exclusively for Akka HTTP and Streams development while they were heavily experimental. https://github.com/akka/akka/tree/release-2.3-de

Re: [akka-user] Dependency problem when updating to akka-http 2.0.1

2016-01-12 Thread Konrad Malawski
It should work properly. There was a PR refactoring that area, indeed:  https://github.com/akka/akka/pull/19066/files Are you sure you don't have mixed up akka http dependencies or something like that via messy dependencies? You mention you looked at dependencyTree so that would show up there tho

Re: [akka-user] Dependency problem when updating to akka-http 2.0.1

2016-01-12 Thread Konrad Malawski
ttps://github.com/rklaehn/invaliddependency I will compile this from my home machine to check that it is not some local configuration weirdness. But we have had this happen from two machines at work... On Tuesday, January 12, 2016 at 4:55:31 PM UTC+1, Konrad Malawski wrote: It should work

[akka-user] ANNOUNCE: Akka Streams & HTTP 2.0.2 Released!

2016-01-14 Thread Konrad Malawski
<https://github.com/akka/akka/issues?q=is%3Aissue+milestone%3Ahttp-2.0.2+is%3Aclosed> milestones on github for your reference. Credits commits added removed 6 287 76 Roland Kuhn 5 173 124 Konrad Malawski 2 99 4 Endre Sándor Varga

Re: [akka-user] Akka HTTP File Not Found Exception

2016-01-15 Thread Konrad Malawski
This may be a bug, I'll look into it soon so thanks for reporting! Glad you liked the talk :-) --  Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 15 January 2016 at 23:57:01, Gustavo Politano (gustavo.polit...@gmail.com) wrote: Hi! I was watching Konrad's workshop from Scala eXchange - ama

Re: [akka-user] Akka HTTP File Not Found Exception

2016-01-15 Thread Konrad Malawski
Oh wait you should check http://doc.akka.io/docs/akka-stream-and-http-experimental/1.0-M2/scala/http/directives/file-and-resource-directives/getFromFile.html I'm already in bed though ;) On Jan 16, 2016 00:01, "Konrad Malawski" wrote: > This may be a bug, I'll look int

Re: [akka-user] [Akka-stream] How to log element pass into a Graph ?

2016-01-20 Thread Konrad Malawski
Have you tried? s ~> Flow[Element].log("...") ~> thingy --  Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 20 January 2016 at 10:56:01, Richard Grossman (richie...@gmail.com) wrote: Hi When working with simple flows you can add between steps log directive. like Flow.log("start").map

Re: [akka-user] StateData mutability in AbstractFSM

2016-01-29 Thread Konrad Malawski
Technically it may be safe in that case, you're in an Actor after all. However I'd argue it's bad style as it mixes an API designed for immutable data passing (the data param of FSM), in a mutable way, which can/will lead to confusion when someone else reads your code. If you want to have (or ar

Re: [akka-user] StateData mutability in AbstractFSM

2016-01-29 Thread Konrad Malawski
1, James P (jsp0...@gmail.com) wrote: Hi Konrad, Thanks for the guidance, much appreciated! Good points, will try to stick to immutable data params for FSM. Have a great weekend :) On Friday, January 29, 2016 at 3:40:23 PM UTC-8, Konrad Malawski wrote: Technically it may be safe in that case, yo

Re: [akka-user] Auto Restart actor when cluster node fails

2016-02-09 Thread Konrad Malawski
Sounds like you're asking about:  http://doc.akka.io/docs/akka/2.4.1/scala/cluster-sharding.html#Remembering_Entities Have you seen that feature? :) --  Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 9 February 2016 at 16:01:06, Paul Cleary (pclear...@gmail.com) wrote: I am using Cluster Sha

Re: [akka-user] Routing DSL self documentation?

2016-02-10 Thread Konrad Malawski
Hi there, this has been a hot topic for quite some time. There exist attempts to implement it in the community, for example: https://github.com/Tecsisa/akka-http-swagger or https://github.com/devsprint/akka-http-swagger For an in depth discussion why it's hard to implement see this issue:  https:

Re: [akka-user] FileIO in 2.4.2-RC3

2016-02-15 Thread Konrad Malawski
Hi RIchard, there's a PR fixing this and the larger issue which is JDK8 types exposure in that API. Will be merged any moment now: https://github.com/akka/akka/pull/19636 for 2.4.2. --  Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 15 February 2016 at 05:47:23, Richard Rodseth (rrods...@gm

Re: [akka-user] [Akka Http] Route parameters in low level API

2016-02-15 Thread Konrad Malawski
Hi Matthieu, Akka HTTP's low level is what it is – low level :-) No, we don't provide any routing capabilities like this in the low level api. Why don't you want to use the high level routing DSL? It has nice support for those things built in. If it's not an option, you can parse the Uri and ext

Re: [akka-user] Akka HTTP Java Directives examples

2016-02-15 Thread Konrad Malawski
Hi Daniel, Before I dive into your question I'd like to highlight that the Java directives are undergoing an intense rewrite just now (they're still experimental, so that's why we must do it now),  and will be way more elastic soon:  https://github.com/akka/akka/pull/19632/files?diff=unified So i

Re: [akka-user] Akka HTTP Java Directives examples

2016-02-15 Thread Konrad Malawski
bout production readiness too much and if we have to rewrite a layer of the app then so be it. Is there a SNAPSHOT/nightly build version or the likes where I can try out the new DSL? Thanks again, Dan On 15 February 2016 at 15:49, Konrad Malawski wrote: Hi Daniel, Before I dive into your quest

Re: [akka-user] Re: Akka streams file compression

2016-02-16 Thread Konrad Malawski
Hi Richard, Not that I'm aware of. You can ping the library maintainer to upgrade to 2.4.2 (we're releasing that today) though :) On Tue, Feb 16, 2016 at 1:45 AM, Richard Rodseth wrote: > I just had the rather gratifying experience of adding Snappy compression > using snappy-flows with > > .via

Re: [akka-user] How to persist path dependent types with Protobuff?

2016-02-16 Thread Konrad Malawski
Hi there, Protocol buffers don't really works on "any case class", you have to map values to protoc generated message classes, (middle collumn in the example), whihc are generated from an IDL shows on the left hand side column here: https://developers.google.com/protocol-buffers/ Read up on how

Re: [akka-user] Akka Stream Example

2016-02-16 Thread Konrad Malawski
Hi there, the docs are:  https://github.com/akka/akka/blob/master/akka-docs/rst/scala/stream/stream-quickstart.rst from there you can find the includecode snippets pointing to:  https://github.com/akka/akka/blob/master/akka-docs/rst/scala/code/docs/stream/TwitterStreamQuickstartDocSpec.scala which

Re: [akka-user] Akka dispatchers are not reused instead new dispatchers are created overtime

2016-02-16 Thread Konrad Malawski
Hi there, Could you share your configuration first and also how you're observing the described problem? Do you have a reproducer for this mesbehaviour? --  Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 16 February 2016 at 16:33:21, Hareesh Jagannathan (harjag...@gmail.com) wrote: Akka app

Re: [akka-user] Re: Akka streams file compression

2016-02-16 Thread Konrad Malawski
n Tue, Feb 16, 2016 at 2:16 PM, Endre Varga wrote: Planned. Had not time so far :) On Tue, Feb 16, 2016 at 2:15 PM, Viktor Klang wrote: (Or add support for compression!) On Tue, Feb 16, 2016 at 2:13 PM, Konrad Malawski wrote: Hi Richard, Not that I'm aware of.  You can ping the library mai

Re: [akka-user] Re: Akka dispatchers are not reused instead new dispatchers are created overtime

2016-02-16 Thread Konrad Malawski
You may want to read my SO answer which explains what you're seeing somewhat (including pictures and how to configure dispatchers properly): stackoverflow.com/questions/34641861/akka-http-blocking-in-a-future-blocks-the-server/34645097#34645097 --  Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe

Re: [akka-user] Failing a stream when a downstream branch fails

2016-02-16 Thread Konrad Malawski
Errors only flow downstream. So in order to take a downstream error and make it fail something "upstream"... you'll have to connect that downstream to the upstream so it becomes a downstream :-) I hope that made sense :-) In general though, you could make a fan-out operation from your downstream

[akka-user] [ANNOUNCE] Akka 2.4.2 including Streams and HTTP Released!

2016-02-17 Thread Konrad Malawski
*Dear hakkers,* we—the Akka committers—are proud to announce the FINAL RELEASE of Akka 2.4.2. The main change in this release is that it includes Streams & HTTP. Some of these new modules are still marked experimental due to impending API changes that we could not yet finish, in particular th

Re: [akka-user] Re: [ANNOUNCE] Akka 2.4.2 including Streams and HTTP Released!

2016-02-18 Thread Konrad Malawski
I've migrated and everything compiles except the http route test. Tests like the one shown don't compile, "route" isn't found.   it should "respond with handled = false for partial path" in {     Get(saPath) ~> route ~> check {       handled shouldEqual false     }   } I don't see how to migr

Re: [akka-user] [ANNOUNCE] Akka 2.4.2 including Streams and HTTP Released!

2016-02-18 Thread Konrad Malawski
Spoke too soon about snappy-flows. ByteStringParser seems to have moved or disappeared between RC-3 and final. I'll ping the author. Caused by: java.lang.ClassNotFoundException: akka.stream.io.ByteStringParser at java.net.URLClassLoader.findClass(URLClassLoader.java:381 It's rather weird if y

Re: [akka-user] [ANNOUNCE] Akka 2.4.2 including Streams and HTTP Released!

2016-02-18 Thread Konrad Malawski
--  Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 18 February 2016 at 10:46:42, Endre Varga (endre.va...@typesafe.com) wrote: One question: will there be a release for Scala 2.10 (i.e., 'com.typesafe.akka:akka-actor_2.10:2.4.2')? No. The rule is and has always been that we release for "cu

Re: [akka-user] Akka-http request timeout exception

2016-02-18 Thread Konrad Malawski
Thanks for reporting, likely it's harmless if happened after timeout but maybe we can make it note silent, please report as an issue, thanks! On Feb 18, 2016 20:57, "David Knapp" wrote: > After upgrading from 2.0.3 to 2.4.2, I'm getting this error when one of my > requests times out: > > 2016-02-

Re: [akka-user] Disable hostname verification

2016-02-19 Thread Konrad Malawski
Hi, Have you tried setting akka.ssl-config.hostnameVerifierClass to your custom "accept everything" classname? --  Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 19 February 2016 at 16:45:55, Michi (michael.tha...@physik.tu-muenchen.de) wrote: Hi, I have written a small HTTPS test server

Re: [akka-user] Disable hostname verification

2016-02-19 Thread Konrad Malawski
regards, Michael On Friday, February 19, 2016 at 4:55:56 PM UTC+1, Konrad Malawski wrote: Hi, Have you tried setting akka.ssl-config.hostnameVerifierClass to your custom "accept everything" classname?   --  Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 19 February 2016 at 16

Re: [akka-user] Disable hostname verification

2016-02-19 Thread Konrad Malawski
#x27;ktoso’ Malawski Akka @ Typesafe On 19 February 2016 at 17:15:23, Endre Varga (endre.va...@typesafe.com) wrote: Cannot the self-signed certs be added to the truststore though? That would be the "proper" workaround. -Endre On Fri, Feb 19, 2016 at 5:12 PM, Konrad Malawski wrote: Current

Re: [akka-user] Why does this simple Akka Streams program never terminate?

2016-02-23 Thread Konrad Malawski
Because Akka uses non-daemonic threads, so it'll keep the app running until you shut-down the ActorSystem. You can do so via: import system.dispatcher s.runForeach(println).onComplete { _ =>  system.terminate() } --  Cheers, Konrad 'ktoso’ Malawski Akka @ Lightbend On 23 February 2016 at 18:11

Re: [akka-user] Custom GraphStage with Java Future

2016-02-24 Thread Konrad Malawski
Hi Gary, it's as simple as setting a dispatcher for a Flow. val flow = Flow[String].via(myBlockingStage).withAttributes(ActorAttributes.dispatcher(“my-configured-blocking-dispatcher”)) (setting a dispatcher also implies an asynchronous boundary). Of course try to avoid these blocking APIs, yo

Re: [akka-user] Intended use for akka.Done and akka.NotUsed

2016-02-24 Thread Konrad Malawski
Hey Rüdiger, yeah those can definitely be used in all kinds of APIs. The reason we have them mostly in Streams for now is because we could not break compatibility in akka-actor for example. The types are intended to be simply more informative than plain `Unit`, so wherever that's needed feel fre

Re: [akka-user] Intended use for akka.Done and akka.NotUsed

2016-02-24 Thread Konrad Malawski
alue.   Cheers, Rüdiger On Wednesday, February 24, 2016 at 11:43:33 AM UTC+1, Konrad Malawski wrote: Hey Rüdiger, yeah those can definitely be used in all kinds of APIs. The reason we have them mostly in Streams for now is because we could not break compatibility in akka-actor for example.

Re: [akka-user] Java-friendly "ask"

2016-02-24 Thread Konrad Malawski
Hi Tal, thanks for pointing out it's not linked to in the docs around `ask`. We have one and it's available in `akka.pattern.PatternsCS`, so you can import statically from that object and it'll read nice (`ask(who, what): COmpletionStage`) :-) I'll add a note to the docs as well: https://github.

Re: [akka-user] Java-friendly "ask"

2016-02-24 Thread Konrad Malawski
Happy hakking! --  Cheers, Konrad 'ktoso’ Malawski Akka @ Lightbend On 24 February 2016 at 16:53:43, Tal Pressman (kir...@gmail.com) wrote: Hmm, not sure why I didn't find it myself. Sorry for the dumb question... Thanks for the quick reply, though! ^_^ -- >> Read the docs: http:/

Re: [akka-user] Can quarantine happen without remote actor creation or watching?

2016-02-24 Thread Konrad Malawski
Yeah, for example if irrecoverable loss of system messages happens. In general death watch on Actors using remoting can in failure scenarios (see above) lead to a Quarantine. Note that Quarantine is irrecoverable, unlike "Unreachable" which is used in the Cluster. Short answer: Use the Cluster –

Re: [akka-user] Googling docs

2016-02-24 Thread Konrad Malawski
Hi there, I'm very glad you found it useful! yeah, it's something on our radar to improve – specifically 2.0.3 should redirect people to 2.4.2+. It's somewhat of a special case as URL needs more change than just changing the version in it, so we didn't yet squeeze in the time to fix that... If

Re: [akka-user] Akka Persistence - callback for persistAll when all events have been saved

2016-02-28 Thread Konrad Malawski
A defer() just after the persistAll call should pretty much be what you need, unless I missed something :) On Feb 28, 2016 15:23, "Łukasz Gąsior" wrote: > Hi, > > Is there a way to execute a handler when all events have been saved using > persistAll? > i.e. have (handler: Seq[A] => Unit) or even

Re: [akka-user] Re: A simple question?

2016-03-02 Thread Konrad Malawski
Hi Oscar, Akka definitely makes a lot of sense even just locally – Actors are also a concurrency abstraction (much nicer to work with than threads). One would need to know more about your project to say more however. For example, while we have Actors, some things are better modeled as Akka Strea

Re: [akka-user] [akka-http-2.4.2] HttpConnectionTimeoutException logged at ERROR

2016-03-04 Thread Konrad Malawski
Hi there, it's not a bug, it's about shutting down connections when no data is passed through it. It's fixed already and will be part of the 2.4.3 release:  https://github.com/akka/akka/pull/19915 Thanks for reporting! --  Cheers, Konrad 'ktoso’ Malawski Akka @ Lightbend On 4 March 2016 at 10:0

Re: [akka-user] Re: Problem with akka sharding 2.3.4

2016-03-05 Thread Konrad Malawski
As mentioned by Guido, we did loads of fixes in the cluster / sharding during the 2.3.x timeline, you'll definitely want to upgrade to the latest 2.3. Also, reminder that we made a specific effort to keep 2.3 and 2.4 binary compatible (sic!) so you cna upgrade to the latest 2.4 as well! One thin

Re: [akka-user] Akka.NET or Alternative

2016-03-07 Thread Konrad Malawski
We know the fine chaps over at Akka.NET a bit and I think you should give them a try :-) It's hard for me to say if the impl is nice and idiomatic for .NET, however as you seem to have an Akka app migrating should be rather simple – they're very much 1:1 with "Akka.JVM" as far as I remember. --

Re: [akka-user] Akka.NET or Alternative

2016-03-07 Thread Konrad Malawski
Also... kind of surprising move: from JVM to .NET, I've seen more of the opposite direction in the past. I suspect it's not much about Akka itself but some organisational movements or hiring things? On Mon, Mar 7, 2016 at 11:01 PM, Konrad Malawski wrote: > We know the fine

Re: [akka-user] Re: How to? - Sink.foldM[U, T](zero: U)(f: (U, T) ⇒ Future[U]): Sink[T, Future[U]]

2016-03-08 Thread Konrad Malawski
Here's the ticket, you'd like to contribute these operations (it's pretty easy to contribute, one can look at mapAsync and see how it differs from map): https://github.com/akka/akka/issues/18603 Thanks in advance if someone steps up to contribute! On Tue, Mar 8, 2016 at 12:12 PM, Viktor Klang wr

Re: [akka-user] akka-http proxy support

2016-03-08 Thread Konrad Malawski
Correct, HTTPS Proxies are not supported yet, see ticket:  https://github.com/akka/akka/issues/16153 Sadly we're not sure when we'll get the chance to work on this yet. For the time being you may want to try Play's WS library, though I'm not sure if they support this feature hm... (They're backed

Re: [akka-user] akka 2.4.2 java - How to create custom ContentType

2016-03-08 Thread Konrad Malawski
Seems we might be missing some factory methods on the MediaTypes trait,  the scaladsl has methods for returning more specific types, such as `applicationWithCharset` etc. Would you please open a ticket about "feature parity of creating MediaTypes for JavaDSL"? Thanks in advance! Please note tha

Re: [akka-user] akka-http proxy support

2016-03-08 Thread Konrad Malawski
the quick answer. Fortunately it is only a small part of our code that needs that. I will use Apache HttpClient for now, which does everything we need. Best regards, Michael On Tuesday, March 8, 2016 at 5:37:01 PM UTC+1, Konrad Malawski wrote: Correct, HTTPS Proxies are not supported yet, see tick

Re: [akka-user] akka 2.4.2 java - How to create custom ContentType

2016-03-08 Thread Konrad Malawski
(kami...@gmail.com) wrote: OK, thanks, any hints how to work this around? I ll create an issue. On Tuesday, 8 March 2016 17:37:48 UTC+1, Konrad Malawski wrote: Seems we might be missing some factory methods on the MediaTypes trait,  the scaladsl has methods for returning more specific types, su

Re: [akka-user] Open-Source Monitoring Tool - Akka 2.4.2

2016-03-09 Thread Konrad Malawski
Our http://resources.typesafe.com/monitoring/docs/ monitoring has seen an internal release of supporting 2.4.2 already. You can get access to it via getting a sub:  http://www.lightbend.com/services/expert-support via this form: https://www.lightbend.com/company/contact Hope this helps. I'm not

<    1   2   3   4   5   6   7   8   9   10   >