Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Dec 07 11:49
    IgorFedchenko commented #4085
  • Dec 07 10:31
    IgorFedchenko commented #4085
  • Dec 07 08:36
    IgorFedchenko commented #4085
  • Dec 06 20:57
    IgorFedchenko commented #4085
  • Dec 06 20:32
    IgorFedchenko commented #4085
  • Dec 06 20:01
    IgorFedchenko commented #4085
  • Dec 06 19:55
    IgorFedchenko commented #4085
  • Dec 06 16:22
    Aaronontheweb labeled #3997
  • Dec 06 16:22
    Aaronontheweb closed #3997
  • Dec 06 16:20
    IgorFedchenko commented #3997
  • Dec 06 16:08
    IgorFedchenko commented #4085
  • Dec 06 15:50
    Aaronontheweb assigned #4085
  • Dec 06 15:50
    Aaronontheweb labeled #4085
  • Dec 06 15:50
    Aaronontheweb labeled #4085
  • Dec 06 15:49
    Aaronontheweb closed #4032
  • Dec 06 14:58
    IgorFedchenko commented #4032
  • Dec 06 14:57
    IgorFedchenko opened #4085
  • Dec 05 17:21
    Aaronontheweb synchronize #4079
  • Dec 05 17:20
    Aaronontheweb labeled #4084
  • Dec 05 17:20
    Aaronontheweb labeled #4084
Weston
@ronnyek
I've got more questions regarding .io and streams
Arjen Smits
@Danthar
Akka streams can certainly be used in combination with akka.io. But afaik there is no OOB sink/source for akka.io atm
@ronnyek should be do-able though
Jay DeBoer
@jaydeboer
Does anyone happen to know of any good examples for unit testing snapshot recovery in an actor? I am trying to write some tests around a persistent actor and the actor will restart, but it seems like recover is never being called. I've also tried putting breakpoints in the SaveSnapshotSuccess and SaveSnapshotFailure message handlers and they are never called during the test. PreRestart and PostRestart are being called in the actor under test, the pieces of state that are set in the constuctor are setup properly after restart, but no snapshot info seems to make it through. Do I need to initialize the actor with some HOCON to be able to save snapshots?
Arjen Smits
@Danthar
Never unit tested snapshot recovery in a custom actor. And even then. I'd test the end result and not the mechanism itself. Persistence itself has pretty extensive unit tests in the akka core repo.
but other then that
if you want to run persistence inside a unit test, normal configuration stuff applies
so you will need to load persistence configuration through hocon
otherwise defaults will apply, which is in-memory for eventsourced storage, and i think for snapshots as well, but im not sure
Jay DeBoer
@jaydeboer
@Danthar That is what I was expecting. I am using snapshots, and that does not appear to work. Maybe I will try convert over to eventsource to see if that works. At least then I know it has to do with snapshots, and not persistence in general.
@Danthar And thanks for the quick reply! :)
Arjen Smits
@Danthar
Try to work out an example and get that working first
its probably something in your hocon config
Jay DeBoer
@jaydeboer
That is what I am doing. :)
Arjen Smits
@Danthar
:+1:
Weston
@ronnyek
Basically what I'd ultimately like is something like the up example of telnet listener that I can pump gobs of data through. I've got that working though seem to hit contention...
If I could then take data from that listener and make that the source for reactive shit... Even better
Weston
@ronnyek
I dont have a TON of experience with akka, but basically followed what I understood in that example for the tcp listener stuff... and seemed like it really wasnt processing that many messages.
Arjen Smits
@Danthar
the current dev ? or 1.1.2 ?
Weston
@ronnyek
1.1.3
Arjen Smits
@Danthar
There has been quite some work on akka.io that should yield some improvements for the upcoming 1.2 release
Weston
@ronnyek
well I think my point was more I probably have it setup wrong =)
other thing is, I get my bytestrings on the other side, but I really dont know how to do anything with them. I get why there are bytestrings, but are there helpers to read stuff out of them like binaryreader/binary writer?
Jay DeBoer
@jaydeboer
@Danthar So it all works just fine using Journal, but snapshot without any HOCON does not appear to work in TestKit. Anyone else with any ideas how to configure a unit test to use something in memory for snapshots?
Arjen Smits
@Danthar
@ronnyek no. The bytestring is just an abstraction we adopted from the JVM. Mainly for serialization purposes, but its nothing more then a byte array underneath. So you can easily access that and use standard .net API's for reading byte arrays
Weston
@ronnyek
k
I'm writing as fast as I can, and built a little observable on the listener that avgs bytes per second
and the most I see is 256 bytes/sec
the client is attempting to write as fast as it can
Arjen Smits
@Danthar
thats seems... wrong. I know for a fact some people have reached way higher numbers with older versions of akka.io.
We have a ping pong benchmark somewhere that uses akka.io
hang on while i look it up
Weston
@ronnyek
well let me backup
I'm not trying to talk between akka.net io and akka.io
I'm just trying to handle raw tcp connections
if thats not what you thought
Arjen Smits
@Danthar
ok
should not be an issue though
Weston
@ronnyek
k
yeah Iwouldnt think it was
but if it seems like I got the wrong idea about all this
eg, akka wouldnt be a good fit here or whatever
I thought akka would be awesome for all the reactive stream processing as well as the backpressure stuff
Arjen Smits
@Danthar
Akka.streams certainly is
@Silv3rcircl3 we don't have an integration for akka.io yet do we ?
Alex Valuyskiy
@alexvaluyskiy
Not yet
waiting for akkadotnet/akka.net#2405
Weston
@ronnyek
io is high performance network transports and things like http endpoints and what not?
webeoutrascoisas
@webeoutrascoisas
Hi!
There's a way to test if my ActorSelection received a message? Something like ActorSelectionProbe?