plex to work on and requires a careful modification of
the core components.
In conclusion, both variants of the distributed
PSO algorithm have their advantages and disadvan-
tages. Due to the multitude of configuration param-
eters available (e.g., SuperRDD size, number of par-
titions, nodes in the cluster, cores per node) it is not
possible to identify one as the "best" one. Therefore
only a real production setting will be able to identify
the most suitable variant for a specific use case – for
which we have given some indicators.
6 CONCLUSIONS
In this paper, we proposed distributed variants of
the PSO algorithm that were implemented on top of
Apache Spark, specifically an asynchronous variant
called DAPSO and two synchronous variants called
DSPSO with Local Update (LU) and Distributed Up-
date (DU). The variants provide options for different
performance and fault tolerance needs.
In our evaluation, we compared our solutions ex-
perimentally with the traditional PSO. We demon-
strated that our distributed algorithms perform bet-
ter than the traditional PSO, resulting on average in
a five times speed improvement. Only in small cases,
the traditional PSO solution performs better concern-
ing elapsed time, but does not provide either adequate
fault tolerance. Fault tolerance is also considered by
tailoring our distributed variants to specific features
offered by the implementation platforms. We pro-
vided indications in which particular situations one
of the three distributed variants would be most bene-
ficial.
In the future, we intend to improve the perfor-
mance of our distributed algorithms by fine-tuning
their implementation better to Apache Spark features.
In conclusion, also testing the algorithms in real-
world scenarios should be performed, to fully validate
our assumptions.
REFERENCES
Azimi, S., Pahl, C., and Shirvani, M. H. (2020). Parti-
cle swarm optimization for performance management
in multi-cluster iot edge architectures. In CLOSER,
pages 328–337.
Bonomi, F., Milito, R., Zhu, J., and Addepalli, S. (2012).
Fog computing and its role in the internet of things. In
MCC workshop. ACM.
Hoang, K. D., Wayllace, C., Yeoh, W., and et al. (2019).
New Distributed Constraint Satisfaction Algorithms
for Load Balancing in Edge Computing: A Feasibility
Study.
Kennedy, J. and Eberhart, R. (1995). Particle swarm op-
timization. In ICNN’95 International Conference on
Neural Networks. IEEE.
Li, A., Li, L., and Yi, S. (2022). Computation Offload-
ing Strategy for IoT Using Improved Particle Swarm
Algorithm in Edge Computing. Wireless Communica-
tions and Mobile Computing, 2022:1–9.
Mahmud, R., Ramamohanarao, K., and Buyya, R. (2020).
Application Management in Fog Computing Environ-
ments: A Taxonomy, Review and Future Directions.
ACM Computing Surveys, 53(4):88:1–88:43.
Pahl, C. (2022). Research challenges for machine learning-
constructed software. Service Oriented Computing
and Applications.
Rodriguez, O., Le, V., Pahl, C., El Ioini, N., and Barzegar,
H. (2021). Improvement of Edge Computing Work-
load Placement using Multi Objective Particle Swarm
Optimization. In (IOTSMS’21).
Salaht, F. A., Desprez, F., and Lebre, A. (2020). An
Overview of Service Placement Problem in Fog
and Edge Computing. ACM Computing Surveys,
53(3):65:1–65:35.
Schutte, J. F., Reinbolt, J. A., Fregly, B. J., Haftka, R. T.,
and George, A. D. (2004). Parallel global optimiza-
tion with the particle swarm algorithm. Intl Jrnl for
Numerical Methods in Eng, 61(13):2296–2315.
Scolati, R., Fronza, I., El Ioini, N., Elgazazz, A. S. A., and
Pahl, C. (2019). A containerized big data streaming
architecture for edge cloud computing on clustered
single-board devices. In CLOSER.
Venter, G. and Sobieszczanski-Sobieski, J. (2006). Paral-
lel Particle Swarm Optimization Algorithm Acceler-
ated by Asynchronous Evaluations. Jrnl of Aerospace
Comp, Inform, and Comm, 3(3):123–137.
Wang, D., Tan, D., and Liu, L. (2018). Particle swarm
optimization algorithm: an overview. Soft Comp.,
22(2):387–408.
Zedadra, O., Guerrieri, A., Jouandeau, N., Spezzano,
G., Seridi, H., and Fortino, G. (2018). Swarm
intelligence-based algorithms within IoT-based sys-
tems: A review. Jrnl of Par and Distr Comp, 122:173–
187.
A Comparison of Synchronous and Asynchronous Distributed Particle Swarm Optimization for Edge Computing
203