there are many method to manage things in the IoT , the most used is SOA and ROA ,also there are others are used for some specific needs , i want to know how and depend on what we chose the best one to acheive our objective
It depends on the situation. In some applications, a service-oriented architecture may exhibit better performance, however, for other applications a resource-oriented architecture might be better. It may also happen that a combination of both service-oriented as well as resource-oriented can be applied in some applications to yield a better performance. Also, the approach can be event-driven. I suggest the following reading list.
[1] Dominique Guinard, Vlad Trifa, Stamatis Karnouskos, Patrik Spiess, and Domnic Savio, "Interacting with the SOA-Based Internet of Things: Discovery, Query, Selection, and On-Demand Provisioning of Web Services", IEEE TRANSACTIONS ON SERVICES COMPUTING, VOL. 3, NO. 3, pp. 223-235, JULY-SEPTEMBER 2010.
[2] Thiago Teixeira, Sara Hachem, Val´erie Issarny, and Nikolaos Georgantas, "Service Oriented Middleware for the Internet of Things: A Perspective", ServiceWave 2011, LNCS 6994, pp. 220–229, 2011.
[3] Kashif Dar, Amir Taherkordi, Harun Baraki, Frank Eliassen, Kurt Geihs, "A Resource Oriented Integration Architecture for the Internet of Things: A Business Process Perspective", Pervasive and Mobile Computing, 2014.