Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 21:23
    Aaronontheweb commented #5604
  • 20:10

    Aaronontheweb on dev

    Trap all exception thrown while… (compare)

  • 20:10
    Aaronontheweb closed #5972
  • 20:10
    Aaronontheweb milestoned #5972
  • 20:10
    Aaronontheweb demilestoned #5972
  • 20:10
    Aaronontheweb milestoned #5972
  • 20:10
    Aaronontheweb labeled #5972
  • 20:09

    Aaronontheweb on v1.4

    Trap all exception thrown while… (compare)

  • 20:09
    Aaronontheweb closed #5971
  • 20:09
    Aaronontheweb auto_merge_disabled #5971
  • 19:47
    zbynek001 commented #5604
  • 19:06
    Aaronontheweb commented #5604
  • 19:03
    zbynek001 commented #5604
  • 17:14

    Arkatufus on 1.4.38-beta2

    (compare)

  • 17:12

    Arkatufus on master

    Bump AkkaVersion from 1.4.37 to… Bump MongoDB.Driver from 2.15.0… Fix Akka.Persistence.MongoDb co… and 4 more (compare)

  • 17:12
    Arkatufus closed #261
  • 17:06
    Arkatufus auto_merge_enabled #261
  • 17:05
    Arkatufus opened #261
  • 16:54
    Arkatufus opened #5972
  • 16:42
    Aaronontheweb auto_merge_enabled #5971
Michel van den Berg
@promontis
haha
Arjen Smits
@Danthar
Wellicht PM even snel ?
Michel van den Berg
@promontis
sure :)
Jack Wild
@jackowild
thanks @Danthar , I'm not sure how the build/CI process works so will need some help with that when one of you gets round to it :+1:
Michal Dabrowski
@defrag2_twitter
Hey guys, question: whenever using a supervising actor for persistent actor (in case where they cannot really be
created or recreated on demand), is the approach of creating actors while replaying event mentioned in "akka in action"
book (https://github.com/RayRoestenburg/akka-in-action/blob/master/chapter-persistence/src/main/scala/aia/persistence/ShoppersSingleton.scala#L71)
the best way to go? Or some streaming from some other source would be more applicable?
Ricardo Abreu
@codenakama

hey guys. I have this scenario where I need to able to do things like determining for a given user: nearby shops, distance from a shop, distance and time away from delivery person/courier.

For this I decided to create a "Locations Service" and the idea is to have other services actors make requests to it to get location related data using Akka.Remote .

For example: Shop Service asks locationsService which are the nearby shops for a given point/user location (latitude, longitude). My problem is that currently I have the dbs separated by each service. How would shop service know which shops to present to the user? Right now all I have is geo spatial data stored in locations service db and a name for each entry. I feel like I'm missing something and I might be even confusing myself :/

Ricardo Abreu
@codenakama
maybe I should kill the locations service and have each service that requires location handle their own spatial data queries without having to call a separate service
Bartosz Sypytkowski
@Horusiath
@codenakama isn't geospatial something that can be simply handled by the database itself?
@defrag2_twitter As long as it's idempotent and won't fail (in your example it's get-or-create an actor), it should be good to go
Ricardo Abreu
@codenakama
@Horusiath indeed, the logic can be done from the db. I think I should keep that inside each micro service and jsut kill my "location service" which was a bad idea
however, I could have a persistent actor registering "login" events for each shop, so this way I could tell which shops are available to order from
Thomas Lazar
@thomaslazar
good morning
i have a question... i can'T seem to get akka testing to run wiht nunit 3 (any version). i seen there were some fixes done around an issue regarding nunit3... but i can't seem to make it work. anyone got any clues?
Jose Carlos Marquez
@oeaoaueaa
what kind of error are you having?
Thomas Lazar
@thomaslazar
when i try to run the tests the resharper testrunner tells me "no testfixtures" found
Andrey Leskov
@andreyleskov
Hey guys, I'm scaling my application with cluster sharding, and have a look at multinode test kit (http://getakka.net/articles/networking/multi-node-test-kit.html). How it supposed to be debugged? is there any guide? may be runners for Resharper Tests, as for NBench ? (https://github.com/Pro-Coded/Pro.NBench.xUnit) I can imaging only attach VS to multinode test runner, and it seems to be painful and long process. (
Aaron Stannard
@Aaronontheweb
@thomaslazar running .NET Core or .NET desktop?
@andreyleskov debugging MNTR specs is a dark art
having done it for years, I have a couple of approaches I use
first - relying on logging as your primary source of information is the lowest-friction path
trying to debug 4-5 processes running concurrently
is going to end poorly usually
especially if you don't know where the problem is
Andrey Leskov
@andreyleskov
oh, >_< yep
Aaron Stannard
@Aaronontheweb
you can use the child process debugger extension
is a free add-on to Visual Studio
zero clue if that supports .NET Core or not
that can help get the debugger attached to breakpoints in the child process
so my methodology is this: use logging to smoke out the error
the MNTR runner will produce detailed logs for each node
and the overall test run report will show you which nodes had failed assertions
get enough log data to form a theory as to why the thing might be failing
Andrey Leskov
@andreyleskov
ok, thank you for fast and detailed answer! will try the dark art )
Aaron Stannard
@Aaronontheweb
and once you have that, then it becomes more feasible to try and use breakpoints
conditional break points are you best friend here too, btw
should only start firing once you're close to the error condition
multi-node tests, by their very nature, are big and cumbersome
but they're the most reliable way to put real-world theories around handling things like failover, network issues, etc, to the test
Andrey Leskov
@andreyleskov
ok, can I use 1-node cluster in TestKit - based tests for basic functionality verification, using cluster.sharding ?
Aaron Stannard
@Aaronontheweb
so to give you an example of something I'm using the MNTR for in my own application
I have a failover scenario where a cluster singleton has to migrate from one node to another
Andrey Leskov
@andreyleskov
it is interesting
Aaron Stannard
@Aaronontheweb
and the other nodes relying on data from that singleton must be able to receive notifications about the location of the new singleton on the network
I'm going to be using the MNTR to test my recovery mechanism there
because a simple unit test can't do it justic3e
have a similar scenario where the node with the singelton running on it gets blacked out temporarily and comes back
"does my cluster react according to my plan?" is what my MNTR spec tries to answer there
Andrey Leskov
@andreyleskov
ok, it seems I should use MNTR tests only for high-level scenarios, and test all application logic with TestKit
by the way - is there any good profiling tool for akka.net like dotTrace? I'm using NBench to measure performance and looking for a simpler ways to find bottlenecks
or any guide how to analyze akka-based application performance with common tools