I'm developing a PHP application with AngularJS, in this application has a messaging system. I need only check the message quantity at least every 2 min. My doubts would be, would using the setInterval be recommended in this case, or would creating a socket be better? Since the update is only showing the user the amount of unread messages and this every 2 min.