The swift emergence of smart technologies, notably the Internet of Things (IoT), has revolutionized numerous industry sectors. However, outdated IoT architectures constrain innovation in smart cities due to scalability issues, compromised resilience, and security vulnerabilities. This thesis scrutinizes these challenges, advocating a contemporary approach to IoT system design. Prioritizing performance, scalability, security, and resilience, the research delves into the applicability of Platform-as-a-Service (PaaS) and Infrastructure-as-Code (IaC) methodologies, endorsing containerization and cloud-centric patterns for smart city IoT. The introduced model is contrasted with prevailing architectures, highlighting a trajectory for IoT progression. Merging empirical and theoretical insights, this study furnishes guidelines for the future of IoT in smart industries, underscoring the benefits of service-based architectures for efficiency, resilience, and security. iii This MASc thesis owes its existence to the guidance and encouragement of many. My appreciation goes to Dr. Chung-Horng Lung, whose keen insights sparked my interest in cloud technologies, one of the most fascinating focus areas of this research. I am also indebted to Mohammed Ismail, a long-time friend and academic cohort. His eagerness to explore the complexities of containerization technologies along with me, combined with his invaluable advice during the implementation and testing phases of my experiments, contributed significantly to the success of this work. My family, a constant source of strength, and my patient fiancé, who has endured my long working hours and has always stood by me, deserve heartfelt recognition. I would be remiss not to mention my two feline companions, whose incessant meows formed a harmonic and cheering soundtrack outside my office door. Finally, I attribute the greatest part of this journey's success to the unwavering guidance of my supervisor, Dr. Jason Jaskolka. His mentorship, from igniting my interest in cybersecurity to the detailed critiques of my work and consistent support, has been profoundly inspirational. His exemplary efficiency and dedication to his students' success were guiding lights during challenging times, for which I am endlessly grateful.