© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•11mo ago•
80 replies
Cydo

✅ Vertical Slice Architecture and Shared Code?

I've adapted one of my projects from using the more traditional Clean Architecture and Repositories/services, but what happens if you have logic that is used across multiple features, if VSA is against using something like a service, do you just repeat code where you need to? That seems silly to me.

But for example say you have a LoginCommandHandler and RefreshTokensCommandHandler, both would have logic for generating both an access and refresh token, so how would you go about handling that? I current still have several "services" in project for things like Tokens and Email for occasions where I know something is going to be reused in multiple features, an I'm not sure if they should be changed
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

❔ Vertical Slice architecture + gRPC
C#CC# / help
3y ago
Vertical Slice Architecture and adding IdentityDbContext<TUser>
C#CC# / help
2y ago
Code architecture Books recommendations for C# and Unity (game dev)
C#CC# / help
3y ago