Best practice(s) for getting new data from server

So my app has the ability to receive friend requests, which is just a record in my database saying User X sent a request to User Y.


While User Y is logged in and using the app, what's the best way to know when that new request has been added by User X?


Should I just periodically hit the server looking for any new updates and then updating the UI accordingly, or are there other practices that are more efficient?


Thanks!

>are there other practices that are more efficient?


For your example, you may have just described notifications...

Best practice(s) for getting new data from server
 
 
Q