Reputation
1,246
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
1 11 32
Impact
~65k people reached

  • 0 posts edited
  • 0 helpful flags
  • 123 votes cast
Aug
5
comment Good practice to save the last time user accessed the app
I'm using Neo4j for that. Best fit for this case ;)
Aug
5
comment Good practice to save the last time user accessed the app
Simple question: where did you see I mention Facebook? I didn't mention it at all. To make "other user" sees last connection of others, a simple basic query would do the trick.
Aug
5
accepted Good practice to save the last time user accessed the app
Aug
5
comment Good practice to save the last time user accessed the app
"This gets complicated given the network of users (this if Facebooks problem, getting information based on their friend network)" => What is the link with the OP ?!
Aug
5
comment Good practice to save the last time user accessed the app
What is the difference with others answers below ?
Aug
5
comment Good practice to save the last time user accessed the app
It is a "feature" lf my app: showing the last member connection to others users.
Aug
2
comment Good practice to save the last time user accessed the app
Why a queue? I only need THE LAST timestamp.
Aug
2
comment Good practice to save the last time user accessed the app
I get it, thanks. I'm curious about some applications that are capable to be accurate to the seconds (not 30 minutes) and involving numerous stateless calls. Like for instance: Tinder on iOS.
Aug
2
comment Good practice to save the last time user accessed the app
Sorry, but I don't figure out your update. Whether the timestamp is set in the JWT token or generated by the server doesn't change the issue at all. This timestamp needs to be stored somewhere. Besides, JWT token is generated at authentication time. As being very long (about 60 days), the last access time stored within it (encrypted) would be directly stale...
Aug
2
comment Good practice to save the last time user accessed the app
I'm using a Heroku cluster of 3 servers. Thus, I imagine the Redis instance should either be duplicated/replicated on those 3 servers OR external (network call) in order to be shared.
Aug
2
comment Good practice to save the last time user accessed the app
The drawback would be: each request, there's a need of a network call to Redis to save the current time associated to the current user.
Aug
2
comment Good practice to save the last time user accessed the app
In Memcache or Redis so (to have fast access)?
Aug
2
comment Good practice to save the last time user accessed the app
My api is stateless yes.
Aug
2
comment Good practice to save the last time user accessed the app
"and then audit if the difference between then and the current time is more than 30 minutes" => it would involve a database query to read the last saved date to compare to ...
Aug
1
revised Good practice to save the last time user accessed the app
added 1 character in body
Aug
1
asked Good practice to save the last time user accessed the app
Jul
30
awarded  Popular Question
Jul
9
awarded  Popular Question
Jun
8
comment Should my login logic be part of the controller or a service in MVC webapp
Typo: public void findByLogin(final String userName); should be public User findByLogin(final String userName); ;)
May
29
awarded  Nice Question