Mixing Transaction Script pattern with DDD/CQRS
- by Herman
Hi all,
Here is the situation, in order to support our legacy system, we need to insert to a table whenever a user logs in. This is basically an CRUD operation, so it doesn't really make sense to create repository/entity/command/event for this since this doesn't tie to any business rules at all. The only benefit to create a CQRS command is that this database write can happen asynchronously under that model. Which is a better route to take?
Use CQRS, and then call a stored proc.
when handling that command?
Just call database directly in the controller (I am using asp.net mvc)