Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Dec 14 19:13
    hwanders commented #4096
  • Dec 14 13:05
    IgorFedchenko commented #4085
  • Dec 14 03:08
    hhko commented #4094
  • Dec 13 21:37
    Aaronontheweb commented #4085
  • Dec 13 20:28
    IgorFedchenko commented #4085
  • Dec 13 20:27
    IgorFedchenko commented #4085
  • Dec 13 15:38
    Aaronontheweb labeled #4096
  • Dec 13 15:38
    Aaronontheweb milestoned #4096
  • Dec 13 15:38
    Aaronontheweb labeled #4096
  • Dec 13 15:38
    Aaronontheweb opened #4096
  • Dec 13 10:41
    peirens-bart opened #4095
  • Dec 13 08:37
    Aaronontheweb synchronize #4071
  • Dec 13 08:13
    jiyeongj opened #4094
  • Dec 12 15:42
    Aaronontheweb synchronize #4086
  • Dec 12 15:42
    Aaronontheweb closed #4083
  • Dec 12 15:42

    Aaronontheweb on dev

    Fix #4083 - Endpoint receive bu… (compare)

  • Dec 12 15:42
    Aaronontheweb closed #4089
  • Dec 12 15:42
    Aaronontheweb labeled #4093
  • Dec 12 15:42
    Aaronontheweb labeled #4093
  • Dec 12 15:42
    Aaronontheweb labeled #4093
Damian Reeves
@DamianReeves
Are there any recommendations or a roadmap concerning Akka.Persistence.SqlServer and SQL Server 2016's JSON type. The current column is VARBINARY which would seem to exlude us from getting any of the benefits of the JSON type. You could of course use the Manifest field it seems for potentially indexable JSON data.
Bartosz Sypytkowski
@Horusiath
@DamianReeves postgres plugin has json/jsonb support (I don't know if it's released already) - we probably could add it to sql server too, but as it will break binary compatibility, it probably won't happen before v1.5
Andrey Leskov
@andreyleskov
@DamianReeves you can store data as json string serialized in Unicode format with custom serializer. After json can be retrievied by sql CAST \ CONVERT
I'm using this approach now, just created view for Journal table
Damian Reeves
@DamianReeves
Guess I can give that a shot
Really want to do things like index Correlation and MessageIds so wondering if Manifest is another viable option
Andrey Leskov
@andreyleskov
Manifest is used to store only Type information, serializers will try to get a type from it. I did not find any possibility to embend custom information into Manifest
Damian Reeves
@DamianReeves
oh ok. I forgot about that
in my mind I kept reading Manifest as Metadata
Andrey Leskov
@andreyleskov
Yes, had same feeling ) May be tags column will fit ?
Damian Reeves
@DamianReeves
Have you actually indexed the columns in your view? is it schemabound?
Andrey Leskov
@andreyleskov
No, I prefer to keep original indexes and using view only for diagnostics \ debug in production. May be will pass json events to BI in future.
Damian Reeves
@DamianReeves
Ok, I see
Andrey Leskov
@andreyleskov
are you interested in passing events from journal to Projection ?
https://github.com/evendotnet/Even#projections
Damian Reeves
@DamianReeves
funny... I'm a contributor to that project
I was starting to be afraid Even is solving a problem that streams and persistence query solves, but in practice I see it solves an actual need
Andrey Leskov
@andreyleskov
From my point of view right now akka persistent journals really need possibility to subscribe to all persisted events as stream : akkadotnet/akka.net#2321
it will help a lot
Damian Reeves
@DamianReeves
Yeah I'm really interested in the projection story of persistent journals... Even gives us this but its not mature, I'm starting to wonder if we just need to add Reactive Streams support to even, but honestly though I get Rx I haven't quite grokked Reactive Streams yet
I think this convo is inspiring me to do a spike on Even (that and I've found myself re-implementing functionality I know Even has in an Akka based CQRS service we are building)
Andrey Leskov
@andreyleskov
I'm using simplified approach for projection - just pub\sub via EventBus \ DistributedPubSub and will gladly look at more convinient approaches
Nicola Atorino
@NicolaAtorino
Good day everyone! I started working on akka a little time ago, and I'm here for a question regarding snapshot and serialization.
I am working with the AtLeastOnceDeliveryReceiveActor, and i need to serialize my own state object toghether with the AtLeastOnceDeliverySnapshot. The documentation of the object itself says that this is possible by wrapping the object itself in another one containing my custom state, and that the AtLeastOnceDeliverySnapshot should be serialized as a blob and stored in the state object for later retrieval. The problem is that the AtLeastOnceDeliverySnapshot is not marked as serializable so I cannot use the .net binaryformatter. Any Idea how to overcome this ?
Vagif Abilov
@object
TWIMC: Had to lock Akka.Persistence.Sql.Common version to 1.1.1, the newest one (1.1.2) wasn't compatible with Akka.Persistence.SqlServer that is not yet updated to 1.1.2.
Andrew Buttigieg
@andrewbuttigieg
Hi all, bit of a question regarding TestKit. I have written a number of unit tests against several of actors in a project. Now all of these tests have ExpectNoMsg(); with everything set to default. This means that the tests are run sequentially and take 3 seconds each. With five tests, the test runner is taking 20 seconds, is there a way to parallelise the execution of these tests?
Bartosz Sypytkowski
@Horusiath
@NicolaAtorino the best option is not to use binary formatter - it's one of the slowest serializers you can imagine on .net
@object afaik akka.persistence.sqlserver PR for upgrade to v1.1.2 is merged to /dev, just not released yet
@andrewbuttigieg this depends on the test runner you're using. Xunit v2+ should have parallel builds by default
Andrew Young
@ayoung
does anyone know how to setup a broadcast group to send messages to actors that have a remote actor path? the path is like akka://clooster/remote/akka.tcp/clooster@127.0.0.1:6766/user/deployer/consistenthashrouter/c2
Andrew Buttigieg
@andrewbuttigieg
@Horusiath I am using NUnit 2x.
So maybe a setting from NUnit itself?
Bartosz Sypytkowski
@Horusiath
@andrewbuttigieg I haven't used NUnit for a while. Nonetheless it's more matter of test runner than akka testkit itself
Andrew Young
@ayoung
@Horusiath know anything about my remote path question above?
Andrey Leskov
@andreyleskov
@Horusiath does it mean that Akka.Persistence.SqlServer 1.1.2 is availalbe in nighly builds ?
Bartosz Sypytkowski
@Horusiath
@andreyleskov I don't know, if you companion plugins have nightly builds, but the best way is to check it out
Nicola Atorino
@NicolaAtorino
@Horusiath thank you for your answer. The akka documentation says to serialize the atleastoncedeliverysnapshot in a byte array, and I tried also protobuf-net but it requires all type and subtype to be mapped beforehand. This is not possible because i canot know the kind of messages that the snapshot will contain inside beforehand. So how can i serialize that kind of object? How does akka.net manage this thing internally? Does it ever serialize object in a byteArray ?
Bartosz Sypytkowski
@Horusiath
@ayoung you're trying to send a message to remotely deployed actor by pinning it to a router, this sounds like overcomplicating things
@NicolaAtorino you can try to use Wire serializer (which will we the default serializer from v1.5 anyway) or just use something json-based
btw. what's wrong with serializing atleastoncedelivery snapshots right now?
Nicola Atorino
@NicolaAtorino
@Horusiath we are using a custom serializer instead of wire because we have elastic as a persistence db (wire serialized object do not work well with it), and this custom serializer has problems with the snapshot object (especially, the actorPath subtype)
@Horusiath since i need my own state obj as a wrapper around the snapshot, i was following the documentation that ways to store the snapshot as a byteArray in a property of my own stateobj. And that's the reason i needed a bynarySerialization in the first place
but now i am thinking that instead of using a byteArray i can store it as a string, and use explicitly the wireserialization that should be able to work with that.
Bartosz Sypytkowski
@Horusiath
every akka serializer is capable of serializing object ot byte arrays
even if you have stream serializers, you can sent them MemoryStream and get byte array from it
Nicola Atorino
@NicolaAtorino
in fact now i will try to use programmatically the ActorSystem.Serialization class
it works well. thank you @Horusiath
Bartosz Sypytkowski
@Horusiath
np ;)
Andrew Buttigieg
@andrewbuttigieg
@Horusiath Ended up using XUnit and I can run parallel test from different assemblies so it solve what I was trying to do
Daniel D'Agostino
@dandago2_twitter
Web crawler sample documentation says: "You also want to make sure you include your Akka.NET HOCON configuration inside Web.config, that way you can take advantage of Web.config Configuration Transformations in combination with HOCON."
is it actually possible to do config transforms on the HOCON?
Peter Bergman
@peter-bannerflow
@dandago2_twitter Not sure if you can do transformations inside the hocon, but you can always replace the whole section with another hocon...