In my application, I'm queueing client requests which the server will process one by one. But I only want the server to process requests that are 30 seconds old. So I created a unique path that clients push to and the server watches on child_added
.
Is there a way to get the timestamp when the child is added or any other metadata?
I know i can make the clients put the timestamp in the value but I don't want the clients to control the value because it can cause a security risk.
Update: clearly there is no firebase controlled timestamp or any other metadata attached to the node. The answer below is wrong.