salty_pepper
What's the difference between webhook and sending an HTTP request to an endpoint exposed by client
@ZZZZZZZZZZZZZZZZZZZZZZZZZ Would it be correct to say webhook is basically a callback for when something happens. And that it only exist for system to system communication? Since end users don't have api endpoints. For real time updates between end users and servers, we should use WebSocket instead.
8 replies
✅ How is aggregate in DDD related to event sourcing and CQRS?
Yep, I understand DDD, CQRS and Event sourcing are separate things.
In an event driven architecture with microservices, we often couple event sourcing with CQRS. Where each microservice has its own event store (event sourcing), coupled with separate read model and write model (CQRS)
However I'm having a difficulty wrapping my head around where DDD and in particular, aggregates come in.
DDD to me is a way of designing microservices. It has 3 layers, application layer ( web api ), domain model layer ( entities, interfaces), infra layer ( repository implementation and efcore).
20 replies
Who handles dependency Injection in a class library?
Right, the actual project using this library will be configuring the config via ConfigurationBuilder, and we will add the settings files from there.
Then we do something like
services.Configure<XXXSettings>(Configuration.GetSection("XXXSettings"));
And in the class library we can inject IOptions<XXXSettings>
61 replies