Towards An Efficient Data Analytics Architecture For The Internet Of Things