Quantcast
Channel: User Álvaro García - Software Engineering Stack Exchange
Browsing all 40 articles
Browse latest View live

In DDD, concurrency belongs to application layer?

In DDD, the model has to implement only the bussiness logic, and it has not the responsability about another things, like persistance.So I was thinking that perhaps is in the application layer a good...

View Article


Why is it needed to use an event to notify the order was modified when I add...

I was reading some examples how to handle concurrency in DDD. One example is in this repository:...

View Article


How to update many properties in DDD?

I have this order:class Order{ long Id; string Concept; string Comments; //another properties UpdateConcept(string paramConcept) {...} UpdateComments(string paramComments) {...}}In the domain entity, I...

View Article

Where to send the email to notify an error in a worker?

I have a service that use a worker to run a periodic task.I will not use a concrete language because it is a generic question, so I will expose the general idea.MainProgram{ Worker.Start(); wait...

View Article

Security of the cerfiticates in the client application in a gRPC service

I have a gRPC service and I was thikning about the security aspects in the client side.I have only one certificate (public and private certificates) for the client, that it is uses for all my clients,...

View Article


Doubts how to design a card game in DDD

I was thinking how to design a simple cards game, like poker, in a DDD way, but I am not sure about some points.Basically what I want is this, but I will try to simplify the problems that I have.I have...

View Article

How to get the information from another root entity to validate some operation?

I am trying to put in practice a small DDD example but I have some dubts.In my example, I have an Order and a Status.The Order can be this:Order{ long Id; long IdStatus; long IdBuyer; Address...

View Article

Where is the advantage to use Auth0 with gRPC?

I have read this example:https://auth0.com/blog/securing-grpc-microservices-dotnet-core/In this example it explains how to implement authorization in a gRPC service.It says that the client request a...

View Article


When an entity has state, all the behavior depends on the state?

I was thinking in the common example orders, that can be in different statates. From create to pending to accept, accepted, sent... and so on.But the order has data too, for example the client, the...

View Article


In DDD, is the root aggregate who has to expose the methods to tell if a...

Thinking in the classic example of orders and lines.I would like to use the domain classes in the presentation layer, so as to check if an action or a property is correct, the main code is in the...

View Article

How to update a child entity of an aggregate root when I modify a property in...

I have one bounded conext, offers, that has Offers as root aggregate and Items as child entity.I have another bounded context, products, which has Products as root aggregate, Providers as another root...

View Article

Is it s agood idea use as foreign key two fields instead of the primary key?

I have this two tables:Documents(ID, IDTypeOfDocument, BigIntReference);I have a documents table that has and ID that is an autonumeric bigint. Also I have categories, and also it has a big int as...

View Article

How to design this case in DDD (domain-driven design)?

I have an employee that has to record the time when it starts to work and the time when it finishes.This records can be associated with a proyect or not. Project could be null.The proyect has an ID and...

View Article


Where to control optimistic concurrency in a domain-driven design (DDD)...

I am thinking how to develop an application in a DDD way, and now I am thinking about the concurrency part.In some examples I have seen that in the domain classes are injected with dependency injection...

View Article

how to design the bounded contexts in DDD?

The context, or bounded contexts, it could be defined as a logical boundary of a domain where particular terms and rules apply consistently.There are another definitions but more or less, this could be...

View Article


Is it needed a unit of work with DDD?

Reading about DDD, i have read that it is needed to have a repository per each aggregate entity.For example, in an ordering system, I should have a repository for the order and another repository for...

View Article

I have to have one application layer for all the projects or one application...

I have a project with various bounded contexts. I have Purchases bounded context and product bounded context.The two projects are developed by two diferent persons, so I am organazing the projects in...

View Article


Where to define the interfaces of the infrastructure in a clean architecture...

I have been reading about clean architecture and following Domain-Driven Design. In all the examples I have found, the interfaces of the repository are defined in the domain.However, it is in the...

View Article

Comment by Álvaro García on Why is it so common to use the dbContext directly...

Thanks for the answer. I understand for small projects it could be over engineering, but if in the future I want to update to a new version of entity core, that perhaps changes methods, or change...

View Article

Why is it so common to use the dbContext directly in the controller in a...

Actually, in a Web API application using Entity Core, it seems very common to inject the application context to the controllers, so the controllers use directly the dbContext to do its work.Something...

View Article
Browsing all 40 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>