Postprint, March 2021 Microservice Remodularisation of Monolithic Enterprise Systems for Embedding in Industrial IoT Networks Adambarage Anuruddha Chathuranga De Alwis 1[0000-0002-4954-6595] , Alistair Barros 1[0000-0001-8980-6841] , Colin Fidge 1[0000-0002-9410-7217] , and Artem Polyvyanyy 2[0000-0002-7672-1643] 1 Queensland University of Technology, Brisbane, Australia {adambarage.dealwis,alistair.barros,c.fidge}@qut.edu.au 2 The University of Melbourne, Parkville, Victoria, Australia artem.polyvyanyy@unimelb.edu.au Abstract. This paper addresses the challenge of decoupling “back-office” enter- prise system functions in order to integrate them with the Industrial Internet-of- Things (IIoT). IIoT is a widely anticipated strategy, combining IoT technologies managing physical object movements, interactions and contexts, with business contexts. However, enterprise systems, supporting these contexts, are notoriously large and monolithic, and coordinate centralised business processes through soft- ware components dedicated to managing business objects (BOs). Such objects and their associated operations are difficult to manually decouple because of the asynchronous and user-driven nature of the business processes and complex BO dependencies, such as many-to-many and aggregation relationships. Here we present a software remodularisation technique for enterprise systems, to support the discovery of fine-grained microservices, which can be extracted and embedded to run on IIoT network nodes. It combines the semantic knowledge of enterprise systems, i.e., the BO structure, with syntactic knowledge of the code, i.e., var- ious dependencies at the level of classes and methods. Using extracted feature sets based on both semantic and syntactic dependencies, K-Means clustering and optimisation is then used to recommend microservices, i.e., redistributions of BO operations through microservices from BO-centric components of enterprise systems. The approach is validated using the Dolibarr open source ERP system, in which we identify processes comprising both “edge” operations and request- response calls to the Cloud-based enterprise system. Through experimentation using Amazon GreenGrass deployments, simulating IIoT nodes, we show that the recommended microservices demonstrate key non-functional characteristics, of high execution efficiency, scalability and availability. Keywords: microservice discovery, system remodularisation, cloud migration. 1 Introduction The Industrial Internet of Things (IIoT) is widely expected to transform automation pro- cesses of construction, manufacturing, utilities and other asset-intense sectors through the real-time integration of physical environments and enterprise systems. Under the IoT, physical object movements, interactions and contexts are tracked and controlled through sensors and actuators, and data is transceived, via gateways, with Cloud sys- tems providing intelligent analytics. The IIoT extends the scope of coordination to