Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 01:56

    Hawxy on v7.1.0

    (compare)

  • Nov 28 14:41

    github-actions[bot] on gh-pages

    Documentation Update for 7.1.0 (compare)

  • Nov 28 14:40

    jeremydmiller on master

    fixed doc link && added blank p… (compare)

  • Nov 28 14:26

    github-actions[bot] on gh-pages

    Documentation Update for 7.1.0 (compare)

  • Nov 28 14:17

    jeremydmiller on master

    bumping to 7.1 for the release (compare)

  • Nov 28 14:03

    jeremydmiller on master

    Add support for multipart form … Update docs (compare)

  • Nov 28 14:03
    jeremydmiller closed #70
  • Nov 28 14:03
    jeremydmiller closed #126
  • Nov 28 08:06
    Hawxy ready_for_review #126
  • Nov 28 08:06
    Hawxy synchronize #126
  • Nov 28 07:40
    Hawxy edited #126
  • Nov 28 07:38
    Hawxy opened #126
  • Nov 28 06:18
    mysticmind labeled #2391
  • Nov 28 06:18
    mysticmind labeled #2391
  • Nov 28 06:18
    mysticmind labeled #2391
  • Nov 28 06:18
    mysticmind labeled #2391
  • Nov 28 06:17
    mysticmind labeled #2327
  • Nov 28 06:17
    mysticmind labeled #2327
  • Nov 28 06:15
    mysticmind labeled #2392
  • Nov 28 06:15
    mysticmind labeled #2392
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!
@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.