{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,5]],"date-time":"2026-11-05T21:30:50Z","timestamp":1793914250028,"version":"4.8.0"},"reference-count":26,"publisher":"PeerJ","license":[{"start":{"date-parts":[[2025,3,11]],"date-time":"2025-03-11T00:00:00Z","timestamp":1741651200000},"content-version":"unspecified","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"MOST","award":["109-2222-E-003-001-MY3"],"award-info":[{"award-number":["109-2222-E-003-001-MY3"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"abstract":"<jats:p>The deployment of smart-city applications has increased the number of Internet of Things (IoT) devices connected to a network cloud. Thanks to its flexibility in matching data publishers and subscribers, broker-based data communication could be a solution for such IoT data delivery, and MQTT is one of the widely used messaging protocols in this class. While MQTT by default does not differentiate message flows by size, it is observed that transient local network congestion may cause size-dependent latency additions, and that the accumulation of large message copies in the cloud broker could run out of the broker memory. In response, in the scope of cloud-edge messaging, this research article presents problem analysis, system design and implementation, and empirical and analytical performance evaluation. The article introduces three message scheduling policies for subscribers deployed at network edge, and a memory allocation scheme for MQTT broker deployed at network cloud. The proposed design has been implemented based on Eclipse Mosquitto, an open-source MQTT broker implementation. Empirical and analytical validations have demonstrated the performance of the proposed design in latency mitigation, and the result also shows that, empirically, the proposed design may save the run-time broker memory footprint by about 75%. Applicability of the proposed design to other messaging services are discussed by the end of the article.<\/jats:p>","DOI":"10.7717\/peerj-cs.2741","type":"journal-article","created":{"date-parts":[[2025,3,11]],"date-time":"2025-03-11T08:23:01Z","timestamp":1741681381000},"page":"e2741","source":"Crossref","is-referenced-by-count":8,"title":["Cloud-edge MQTT messaging for latency mitigation and broker memory footprint reduction"],"prefix":"10.7717","volume":"11","author":[{"given":"Yi-Hsuan","family":"Tseng","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-0919-8781","authenticated-orcid":true,"given":"Chao","family":"Wang","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0003-7963-3846","authenticated-orcid":true,"given":"Yu-Tse","family":"Wei","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Yu-Ting","family":"Chiang","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"4443","published-online":{"date-parts":[[2025,3,11]]},"reference":[{"issue":"1","key":"10.7717\/peerj-cs.2741\/ref-1","doi-asserted-by":"publisher","first-page":"361","DOI":"10.1146\/annurev-earth-053018-060457","article-title":"Earthquake early warning: advances, scientific challenges, and societal needs","volume":"47","author":"Allen","year":"2019","journal-title":"Annual Review of Earth and Planetary Sciences"},{"issue":"3","key":"10.7717\/peerj-cs.2741\/ref-2","doi-asserted-by":"publisher","first-page":"12","DOI":"10.1016\/j.future.2023.09.031","article-title":"Towards named data networking technology: emerging applications, use cases, and challenges for secure data communication","volume":"151","author":"Anjum","year":"2024","journal-title":"Future Generation Computer Systems"},{"key":"10.7717\/peerj-cs.2741\/ref-3","article-title":"MQTT version 5.0","author":"Banks","year":"2019"},{"key":"10.7717\/peerj-cs.2741\/ref-4","first-page":"1","article-title":"Dissemination of edge-heavy data on heterogeneous MQTT brokers","author":"Banno","year":"2017"},{"issue":"3","key":"10.7717\/peerj-cs.2741\/ref-5","doi-asserted-by":"publisher","first-page":"1607","DOI":"10.3390\/app12031607","article-title":"IoT-enabled smart cities: a review of concepts, frameworks and key technologies","volume":"12","author":"Bellini","year":"2022","journal-title":"Applied Sciences"},{"key":"10.7717\/peerj-cs.2741\/ref-6","volume-title":"Data networks","author":"Bertsekas","year":"1992","edition":"2"},{"issue":"4","key":"10.7717\/peerj-cs.2741\/ref-7","doi-asserted-by":"publisher","first-page":"2456","DOI":"10.1109\/COMST.2017.2736886","article-title":"Smart cities: a survey on data management, security, and enabling technologies","volume":"19","author":"Gharaibeh","year":"2017","journal-title":"IEEE Communications Surveys & Tutorials"},{"key":"10.7717\/peerj-cs.2741\/ref-8","doi-asserted-by":"crossref","DOI":"10.1017\/CBO9781139226424","volume-title":"Performance modeling and design of computer systems: queueing theory in action","author":"Harchol-Balter","year":"2013"},{"issue":"2","key":"10.7717\/peerj-cs.2741\/ref-9","doi-asserted-by":"publisher","first-page":"e4945","DOI":"10.1002\/ett.4945","article-title":"Improvement of MQTT semantic to minimize data flow in IoT platforms based on distributed brokers","volume":"35","author":"Kamoun","year":"2024","journal-title":"Transactions on Emerging Telecommunications Technologies"},{"key":"10.7717\/peerj-cs.2741\/ref-10","first-page":"714","article-title":"Correlation analysis of MQTT loss and delay according to QoS level","author":"Lee","year":"2013"},{"key":"10.7717\/peerj-cs.2741\/ref-11","first-page":"1","article-title":"Traffic-aware video streaming topology reconfiguration for smart city applications","author":"Li","year":"2024"},{"issue":"13","key":"10.7717\/peerj-cs.2741\/ref-12","doi-asserted-by":"publisher","first-page":"265","DOI":"10.21105\/joss.00265","article-title":"Mosquitto: server and client implementation of the MQTT protocol","volume":"2","author":"Light","year":"2017","journal-title":"Journal of Open Source Software"},{"key":"10.7717\/peerj-cs.2741\/ref-13","first-page":"1","article-title":"Scheduling messages within MQTT shared subscription group in the clustered cloud architecture","author":"Mati\u0107","year":"2020"},{"issue":"3","key":"10.7717\/peerj-cs.2741\/ref-14","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1145\/3529978","article-title":"LA-MQTT: location-aware publish-subscribe communications for the Internet of Things","volume":"3","author":"Montori","year":"2022","journal-title":"ACM Transactions on Internet of Things"},{"key":"10.7717\/peerj-cs.2741\/ref-15","first-page":"1","article-title":"Choice of effective messaging protocols for IoT systems: MQTT, COAP, AMQP and HTTP","author":"Naik","year":"2017"},{"issue":"3","key":"10.7717\/peerj-cs.2741\/ref-16","doi-asserted-by":"publisher","first-page":"160","DOI":"10.1587\/comex.2021XBL0196","article-title":"The control mechanism of distributed MQTT brokers for large volume data transfer and its prototype system","volume":"11","author":"Ohno","year":"2022","journal-title":"IEICE Communications Express"},{"issue":"9","key":"10.7717\/peerj-cs.2741\/ref-17","doi-asserted-by":"publisher","first-page":"3071","DOI":"10.3390\/s18093071","article-title":"DM-MQTT: an efficient MQTT based on SDN multicast for massive IoT communications","volume":"18","author":"Park","year":"2018","journal-title":"Sensors"},{"issue":"4","key":"10.7717\/peerj-cs.2741\/ref-18","doi-asserted-by":"publisher","first-page":"2232","DOI":"10.3390\/smartcities7040088","article-title":"Smart city community watch\u2014camera-based community watch for traffic and illegal dumping","volume":"7","author":"Pathak","year":"2024","journal-title":"Smart Cities"},{"issue":"1","key":"10.7717\/peerj-cs.2741\/ref-19","doi-asserted-by":"publisher","first-page":"472","DOI":"10.1109\/COMST.2020.3025995","article-title":"A comprehensive survey of the tactile internet: state-of-the-art and research directions","volume":"23","author":"Promwongsa","year":"2020","journal-title":"IEEE Communications Surveys & Tutorials"},{"key":"10.7717\/peerj-cs.2741\/ref-20","first-page":"191","article-title":"EMMA: distributed QoS-aware MQTT middleware for edge computing applications","author":"Rausch","year":"2018"},{"key":"10.7717\/peerj-cs.2741\/ref-21","first-page":"921","article-title":"Geofencing 2.0: taking location-based notifications to the next level","author":"Rodriguez Garzon","year":"2014"},{"issue":"1","key":"10.7717\/peerj-cs.2741\/ref-22","doi-asserted-by":"publisher","first-page":"102362","DOI":"10.1016\/j.sysarc.2021.102362","article-title":"Resource provisioning in edge\/fog computing: a comprehensive and systematic review","volume":"122","author":"Shakarami","year":"2022","journal-title":"Journal of Systems Architecture"},{"issue":"3","key":"10.7717\/peerj-cs.2741\/ref-23","doi-asserted-by":"publisher","first-page":"1371","DOI":"10.1016\/j.future.2017.12.065","article-title":"Video big data in smart city: background construction and optimization for surveillance video processing","volume":"86","author":"Tian","year":"2018","journal-title":"Future Generation Computer Systems"},{"issue":"4","key":"10.7717\/peerj-cs.2741\/ref-24","doi-asserted-by":"publisher","first-page":"2318","DOI":"10.3390\/smartcities7040091","article-title":"Pipeline leak detection system for a smart city: leveraging acoustic emission sensing and sequential deep learning","volume":"7","author":"Ullah","year":"2024","journal-title":"Smart Cities"},{"key":"10.7717\/peerj-cs.2741\/ref-25","first-page":"1","article-title":"Comparison with HTTP and MQTT on required network resources for IoT","author":"Yokotani","year":"2016"},{"issue":"2","key":"10.7717\/peerj-cs.2741\/ref-26","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1145\/3380613","article-title":"Content delivery networks: state of the art, trends, and future roadmap","volume":"53","author":"Zolfaghari","year":"2020","journal-title":"ACM Computing Surveys (CSUR)"}],"container-title":["PeerJ Computer Science"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/peerj.com\/articles\/cs-2741.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/peerj.com\/articles\/cs-2741.xml","content-type":"application\/xml","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/peerj.com\/articles\/cs-2741.html","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/peerj.com\/articles\/cs-2741.pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,3,11]],"date-time":"2025-03-11T08:23:12Z","timestamp":1741681392000},"score":1,"resource":{"primary":{"URL":"https:\/\/peerj.com\/articles\/cs-2741"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,3,11]]},"references-count":26,"alternative-id":["10.7717\/peerj-cs.2741"],"URL":"https:\/\/doi.org\/10.7717\/peerj-cs.2741","archive":["CLOCKSS","LOCKSS","Portico"],"relation":{},"ISSN":["2376-5992"],"issn-type":[{"value":"2376-5992","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,3,11]]},"article-number":"e2741"}}