# A Testbed to Evaluate the FIWARE-Based IoT Platform in the Domain of Precision Agriculture
## 6 Conclusions and Future Work
As for data persistence in Cosmos through Cygnus-NGSI, in the same way that an Orion processes farm can be created, additional Cygnus-NGSI processes responsible for receiving Orion farm notifications can be added. To do that, it is advisable to define a mapping strategy for system entities. Thus, subscriptions are established corresponding to a set A of entities that will notify the Cygnus-NGSI A process, another set of entities B which will notify the Cygnus B process, etc. Another important feature of Generic Enabler Data Handling is the optimisation of traffic sent to the IoT Backend. This functionality helps achieve greater efficiency and reliability by using CEP techniques. In short, it is possible to increase system efficiency by injecting preprocessed context information (more relevant for the IoT application) into the backend. Thus the CEP, also discussed in the Chapter on _Data/Context Management_, would alleviate traffic sent to Cygnus-NGSI. Summarising, it can be concluded that the combination of: (1) optimal performance tuning of FIWARE components, (2) the mechanisms provided by each component, (3) the horizontal scalability of each instance in the cloud and (4) the vertical scalability of the platform, makes the development of agricultural applications in futuristic scenarios as described in Section 4.1 possible. Although the testbed is oriented towards measurement of performance and data storage capacity, it is extendible to include other properties. For this reason, it is possible to further the study of the FIWARE platform (analysis of case 2 above, streaming with FIWARE) or conduct a wide variety of studies focusing on current IoT middleware. In addition, all the software infrastructure that simulates the sensors and the different ways in which they generate the data (payload, data frequency generation, number of processes and threads, etc.) can be easily used to test other IoT middleware. In doing so, we will be able to compare the results obtained with FIWARE with other middleware platforms, such as WSO2, PubNub... opening up a future avenue of research through its use with other platforms enabling comparative studies. This work has been partially supported by the Spanish Government's cDrone Project (ref. TIN2013-45920-R) and the H2020 programme of the UE (ref. START-UP SCALE-UP, 644.023). This paper is the result of the research carried out under the Research Program for Groups of Scientific Excellence of the Seneca Foundation (Agency for Science and Technology of the Region of Murcia, ref. 19895/GERM/15). [PERSON] has implemented the testbed and performed the tests. The IoT use case and the design of the testbed have been discussed and defined by all authors. [PERSON] is expert in wireless sensor networks applications in the field of precision agriculture. For this reason, he has contributed in the definition of the IoT use case scenario and has reviewed the results. This article is part of a doctoral thesis performed by the first author and orchestred by [PERSON] and [PERSON], both experts in software engineering technologies related to the Internet of Things paradigm. They have directed the research work and reviewed and improved all drafts. The authors declare no conflict of interest.