Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 28 21:38
    dnfadmin commented #1728
  • Sep 28 21:38
    dnfadmin commented #1728
  • Sep 28 02:11
    kuanpak opened #70
  • Sep 27 10:46
    dnfadmin commented #1580
  • Sep 27 10:46
    dnfadmin commented #1580
  • Sep 27 06:14
    dnfadmin commented #1736
  • Sep 27 06:14
    dnfadmin commented #1736
  • Sep 27 05:29
    dnfadmin commented #2006
  • Sep 27 05:29
    dnfadmin commented #2006
  • Sep 26 12:52
    NikiforovAll opened #2360
  • Sep 26 12:52
    NikiforovAll opened #2360
  • Sep 26 11:57
    prodigy1 opened #27
  • Sep 26 11:36
    prodigy1 edited #26
  • Sep 26 11:30
    prodigy1 edited #26
  • Sep 26 11:25
    prodigy1 edited #26
  • Sep 26 11:21
    prodigy1 opened #26
  • Sep 25 15:57
    kuanpak opened #69
  • Sep 23 18:26
    dnfadmin commented #1746
  • Sep 23 18:26
    dnfadmin commented #1746
  • Sep 22 20:37
    MahmoudSamir101 ready_for_review #2358
Oskar Dudycz
@oskardudycz
:)
Oskar Dudycz
@oskardudycz
I just watched @jeremydmiller's talk. I like it a lot, especially the Jasper integration as the sprinkle on top :)
It's nice, that we were showing similar things, but from different angles and a different, but complementary way, so I think watching both of them gives a good holistic starting point :)
Babu Annamalai
@mysticmind
I also watched @jeremydmiller's talk and he packed a lot of concepts and usage with regards to Marten. I got a good intro on Jasper + Marten which is going to get more traction due its simplicity.
Overall, both the talks are awesome and provides good chunk of intro into the world of Marten. :clap:
Oskar Dudycz
@oskardudycz
Thanks Babu :)
chathamcoders
@chathamcoders_twitter

hi, is there a lightweight way to determine if a model exists doing the below? was expecting something like session.Any<SomeModel>(someId) etc

_documentSession.LoadAsync<SomeModel>(someId, innerCancellationToken);

Oskar Dudycz
@oskardudycz
Hi, could you expand on lightweight? :)
Babu Annamalai
@mysticmind
Looks like he is wanting to check whether a document exist or not, without fetching any doc.
Babu Annamalai
@mysticmind
session.Query<SomeModel>().Where(x => x.Id == someId).Select(x => new { Id = x.Id }).SingleOrDefault() - This would be a way to fetch minimal document data using a Select projection by returning just the Id
1 reply
Oskar Dudycz
@oskardudycz
I think that indeed, we could add some synctactic sugar to support Exists method.
Babu Annamalai
@mysticmind
yeah.
Babu Annamalai
@mysticmind
I did play with that, it is awesome...
Oskar Dudycz
@oskardudycz
I'm planning to use WebAssembly to do something like FaaS
So outbox based on the Postgres CDC plus Web Assembly for pipeline transformations
Seeing that made my mind blown :D
I mean WebAssembly on server-side
Babu Annamalai
@mysticmind
got you, was wondering what the use case was, you outlined it
Oskar Dudycz
@oskardudycz
There are already tries in that, e.g. Kubernetes using WASM as runtime https://github.com/krustlet/krustlet
That sounds weird, but it's pretty serious, even MS is engaged in that
Babu Annamalai
@mysticmind
k8s is wasm is a crazy idea...
Oskar Dudycz
@oskardudycz
Not some crazy as it seems, WASM has better security guarantees than traditional containers :)
But yeah, that's long shot
Jeremy D. Miller
@jeremydmiller
@chathamcoders_twitter Even without us doing any kind of syntactical sugar, you can happily do Query<T>().AnyAsync(x => x.Id == id)
Willem Meints
@wmeints
Hey @oskardudycz Thanks for the nice talk on Youtube about Marten. Very informative and fun to watch :D
Oskar Dudycz
@oskardudycz
Thanks, Willem, for the feedback! Happy that you like it 🙂 I saw your comment on the Youtube video and answered it, but as an added link, there Youtube spam filters blocked me 🤷‍♂️
I linked the self-paced kit exercise showing different flours of handling domain logic with Marten https://github.com/oskardudycz/EventSourcing.NetCore/tree/main/Workshops/IntroductionToEventSourcing/08-BusinessLogic.Marten 🙂
Willem Meints
@wmeints
Kewl! I'm using some of the tricks with records in projections that you showed. Makes it more readable :D
Oskar Dudycz
@oskardudycz
Yeah, I like that it’s so self-explanatory. In projections (compared to aggregation) you get less performance penalty
Willem Meints
@wmeints
The only thing that still has me pondering is this: What if I want to call other dependencies (especially scoped ones) from a projection? Is that a thing?
Willem Meints
@wmeints
Doesn't look too bad. Thanks for sharing :-)
Oskar Dudycz
@oskardudycz
Best to probably inject factory Func<YourDependency> doing the scope creation and resolution
from ServiceProvider
Although it’s best to be careful and avoid such need ;)
Willem Meints
@wmeints
Yeah, that's what I'm thinking as well. There are better, more visible spots, to do these kinds of things. The less magic, the better.
Oskar Dudycz
@oskardudycz
I tried to do that in the past, even introducing syntactic sugar on top of it in Marten as one of my first PRs, but at some point dropped using it ;)
Using external dependencies introduced deterministic behaviours and performance degradation in our case.
Of course, sometimes it’s right and justified, but it better double-check if it’s really needed.
Phillip Haydon
@phillip-haydon
thanks for the recordings @oskardudycz, plan to watch tomorrow, my daughter was born yesterday so in hospital with wife with a bit of free time
Oskar Dudycz
@oskardudycz
Congratulations Phillip! I hope that's all fine :)
Jeremy D. Miller
@jeremydmiller
Oh wow, congrats Phillip! Hope everybody is doing well
Babu Annamalai
@mysticmind
Congrats @phillip-haydon!
Jeremy D. Miller
@jeremydmiller
@oskardudycz @mysticmind I'm piddling around w/ minor document updates today and maybe this weekend. The newish FetchForWriting() functionality? Would you all rather have that added to the existing appending web page, or an all new page?
I'm leaning toward an all new page that's dedicated to handling CQRS commands, but I'd be very happy to have any suggestions for what that page would even be called
Phillip Haydon
@phillip-haydon
Thanks. Mum and baby are doing really well.
Oskar Dudycz
@oskardudycz
Great Phillip, keeping fingers crossed 🤞 once again congrats!