Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 13:51
    jeremydmiller commented #2412
  • 13:51
    jeremydmiller commented #2412
  • 07:32
    Leh2 ready_for_review #2409
  • 07:32
    Leh2 ready_for_review #2409
  • 06:50

    github-actions[bot] on gh-pages

    Documentation Update for 7.2.1 (compare)

  • 06:49

    github-actions[bot] on v7.2.1

    (compare)

  • 06:44

    Hawxy on master

    Improve assertion documentation… (compare)

  • 06:34
    Hawxy closed #128
  • 06:34

    Hawxy on master

    Fix single header assertion wit… (compare)

  • 06:34
    Hawxy closed #129
  • 06:29
    Hawxy commented #128
  • 06:27
    Hawxy synchronize #129
  • 06:24
    Hawxy edited #129
  • 06:19
    Hawxy opened #129
  • 04:33
    Hawxy assigned #128
  • Dec 01 22:26
    joshuaflanagan opened #2412
  • Dec 01 22:26
    joshuaflanagan opened #2412
  • Dec 01 18:58

    github-actions[bot] on v5.0.0

    (compare)

  • Dec 01 18:44

    jeremydmiller on master

    Dropped .NET 5, using JasperFx.… Converting to JasperFx stuff finished eliminating baseline u… and 1 more (compare)

  • Dec 01 17:37
    stevemossquill edited #2411
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!
@jeremydmiller, I’d also vote for a dedicated page. I’m not sure if it has to be named CQRS. To not make some people defensive, maybe “Handling Business Logic” would be better and then inside mention CQRS.
Babu Annamalai
@mysticmind
@jeremydmiller if we have it in a separate page, discovery is going to be a problem since it is not cohesively in one place. I would suggest to add to to appending itself. Thoughts?
Just re-looking, alternative is to put it in https://martendb.io/scenarios/aggregates-events-repositories.html where we are talking about different scenarios. So this could be in a scenario based explanation.
in addition, put it under appending as well for each method. Also a a link to a section in the above mentioned page with a short explanation.
Probably, the above is better...
Phillip Haydon
@phillip-haydon
repositories bad!
Babu Annamalai
@mysticmind
I meant to add a scenarios page for using FetchForWriting()