Reputation: 49
I am migrating the my old ASP.NET Web Forms project to ASP.NET Core Web API with an Angular frontend. in my older application storing user information instance and its values (like assigned groups, permissions, and other user information). I am going to use JWT, but I can't store all information in JWT, so should I continue utilizing sessions in my ASP.NET Core application or retrieve this information from the database in each request?
Is there any other Best practices are available in modern application development?
Upvotes: -1
Views: 2022
Reputation: 26430
Multiple options for this, depending on what you need:
Session
object.It all comes down to complexity vs speed. If the queries are simple enough and lightning fast, then it might be useless to store them in any cache anyway.
Upvotes: 2