Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 01 13:40
    dnfadmin commented #1746
  • Oct 01 13:40
    dnfadmin commented #1746
  • Oct 01 05:23
    dnfadmin commented #1846
  • Oct 01 05:23
    dnfadmin commented #1846
  • Sep 30 01:33
    dnfadmin commented #1706
  • Sep 30 01:33
    dnfadmin commented #1706
  • Sep 29 16:22
    dnfadmin commented #2149
  • Sep 29 16:22
    dnfadmin commented #2149
  • Sep 29 09:31
    NikiforovAll commented #2360
  • Sep 29 09:31
    NikiforovAll commented #2360
  • 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
Babu Annamalai
@mysticmind
anyhow, the videos are all 1+ hrs :-)
Oskar Dudycz
@oskardudycz
I think that we could also record a shorter one
later on
with really quick start :)
Babu Annamalai
@mysticmind
yes!
Also I would want to add your quote "Event Sourcing is not difficult but a bit different"
Oskar Dudycz
@oskardudycz
:)
Babu Annamalai
@mysticmind
It quite a neat one to galvanize someone's mind to give it a deep thought.
Oskar Dudycz
@oskardudycz
Yeah, from my experience once people see Event Sourcing code with explanation the reaction is "well, that's not that hard as I heard". Of course, then once you're getting your hands dirty you need to shift your mindset a bit, but it's really not that hard :)
Especially with Marten :D
Babu Annamalai
@mysticmind
true!
Once someone gets their hand dirty, we can transpose our quote to "Your mileage may vary but everything is a still a bit different and not difficult" :-)
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 ;)