Mixing Transaction Script pattern with DDD/CQRS
Posted
by Herman
on Stack Overflow
See other posts from Stack Overflow
or by Herman
Published on 2010-06-14T22:08:27Z
Indexed on
2010/06/14
22:12 UTC
Read the original article
Hit count: 283
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)
© Stack Overflow or respective owner