Future Internet (Feb 2019)

Fog vs. Cloud Computing: Should I Stay or Should I Go?

  • Flávia Pisani,
  • Vanderson Martins do Rosario,
  • Edson Borin

DOI
https://doi.org/10.3390/fi11020034
Journal volume & issue
Vol. 11, no. 2
p. 34

Abstract

Read online

In this article, we work toward the answer to the question “is it worth processing a data stream on the device that collected it or should we send it somewhere else?„. As it is often the case in computer science, the response is “it depends„. To find out the cases where it is more profitable to stay in the device (which is part of the fog) or to go to a different one (for example, a device in the cloud), we propose two models that intend to help the user evaluate the cost of performing a certain computation on the fog or sending all the data to be handled by the cloud. In our generic mathematical model, the user can define a cost type (e.g., number of instructions, execution time, energy consumption) and plug in values to analyze test cases. As filters have a very important role in the future of the Internet of Things and can be implemented as lightweight programs capable of running on resource-constrained devices, this kind of procedure is the main focus of our study. Furthermore, our visual model guides the user in their decision by aiding the visualization of the proposed linear equations and their slope, which allows them to find if either fog or cloud computing is more profitable for their specific scenario. We validated our models by analyzing four benchmark instances (two applications using two different sets of parameters each) being executed on five datasets. We use execution time and energy consumption as the cost types for this investigation.

Keywords