Quantcast
Channel: Active questions tagged use-case - Stack Overflow
Viewing all articles
Browse latest Browse all 81

Handling Multiple Actors in a Use Case in Clean Architecture and DDD

$
0
0

I am doing an API for a blog site using Clean Architecture and DDD. I find myself doing a use case to get all comments for a requested article. The thing is that anonymous users can see the comments but not do any action on them like editing, liking, etc. I just realized that this is more than one actor for the same use case--public (unauthenticated) and authenticated. Should I do two different use cases for getting the comments? SRP suggests me that YES. However, since I have not being here before, I would appreciate feedback on good strategies for managing such scenarios effectively.


Viewing all articles
Browse latest Browse all 81

Trending Articles



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