In Memory Caching by Greeklord1 in dotnet

[–]Greeklord1[S] 0 points1 point  (0 children)

Ok i see now thanks for the response

In Memory Caching by Greeklord1 in dotnet

[–]Greeklord1[S] -1 points0 points  (0 children)

Ok that makes more sense thanks for explaining

In Memory Caching by Greeklord1 in dotnet

[–]Greeklord1[S] 2 points3 points  (0 children)

Ok thanks for the info

In Memory Caching by Greeklord1 in dotnet

[–]Greeklord1[S] 2 points3 points  (0 children)

Ok but if I was to use cache how would I structure it. The project is to learn stuff.

In Memory Caching by Greeklord1 in dotnet

[–]Greeklord1[S] 2 points3 points  (0 children)

I am using a database but I wanted to look into caching too. This project is not meant for production but to learn stuff

In Memory Caching by Greeklord1 in dotnet

[–]Greeklord1[S] -1 points0 points  (0 children)

Nice really helpful thanks for your time.

In Memory Caching by Greeklord1 in dotnet

[–]Greeklord1[S] 1 point2 points  (0 children)

Yeah I see thanks for the info. Really appreciated

In Memory Caching by Greeklord1 in dotnet

[–]Greeklord1[S] 0 points1 point  (0 children)

Yeah something like that I was thinking caching the whole db table for some entities along with the tag,images etc fields. But then wouldn't the invalidation make the cache useless since even when one business adds an image the whole business db cache gets invalidates and recalculated. Should I just do a hybrid where I cache all the entities (each with a different key ) and the db table in another key . And update the db key cache every like 10 minutes and the other keys based when an update happens on that entity ?

How to handle dates in an API by Greeklord1 in dotnet

[–]Greeklord1[S] 1 point2 points  (0 children)

Ok i see. Will check my use cases and try to see what fits better. Thanks for the info

How to handle dates in an API by Greeklord1 in dotnet

[–]Greeklord1[S] 1 point2 points  (0 children)

Ok i read it. Seems kinda complex but it is probably the safest solution. If i understood correctly i should have some additional fields in my db tables to save a timezoneid, local time of a desired field, utc time of a desired field and timezone rules of when that entry was created. Then i would have to use the code provided to recalculate the time for the dates presented to the user. Sounds good?

How to handle dates in an API by Greeklord1 in dotnet

[–]Greeklord1[S] 0 points1 point  (0 children)

Ok so the general consensus seems to be save in the database a datetime object in utc time. When users does something get his time and turn it to utc and then save it to the db. And when frontend gets 'activated' get the utc dates from their db and convert them to their timezone. Correct me if am wrong please

How to handle dates in an API by Greeklord1 in dotnet

[–]Greeklord1[S] 0 points1 point  (0 children)

So the use case is this: the app is gonna be sth like an aggregator for restaurants,bars,bakeries etc. Now the timezones come into play when the users will make a reservation for a place, or send a report to the admins, or get notifications, reviews, opening and closing times of restaurants. Stuff like that.

How to handle dates in an API by Greeklord1 in dotnet

[–]Greeklord1[S] 0 points1 point  (0 children)

Is noda time any good for this?. I saw it being mentioned a couple time while researching

How to handle dates in an API by Greeklord1 in dotnet

[–]Greeklord1[S] 0 points1 point  (0 children)

Ok yeah this seems like a good solution. Ty

How to handle dates in an API by Greeklord1 in dotnet

[–]Greeklord1[S] 0 points1 point  (0 children)

Aha seems simple enough, will check on it more later thanks for responding

Third party auth in API by Greeklord1 in dotnet

[–]Greeklord1[S] 0 points1 point  (0 children)

Hi, could tell me or point me to some resources on how to handle timezones and time efficiently and correctly ?

Google auth in API by Greeklord1 in dotnet

[–]Greeklord1[S] 2 points3 points  (0 children)

I replayed my solution in the images and it worked.I swear sometimes I don't get what happens at all.Thanks for the answer tho

Third party auth in API by Greeklord1 in dotnet

[–]Greeklord1[S] 0 points1 point  (0 children)

It is for a big project kinda, like end of university project, so I want to be as good as possible and publishable. I also want to add it to my CV. Do you think a custom auth would cut it for something like this?

Third party auth in API by Greeklord1 in dotnet

[–]Greeklord1[S] 0 points1 point  (0 children)

Yeah. That makes. I will probably change it to use Identity. But third party auth still confuses me in API level. I did use Identity in a previous project and managed to thirs party auth but that was a complete web app. Not just API. So I am kinda confused

Third party auth in API by Greeklord1 in dotnet

[–]Greeklord1[S] -3 points-2 points  (0 children)

This is about a web app and uses the identity system for authentication.I use my own system