This research paper provides an overview of edge computing in IoT infrastructure and critical research on security and privacy issues faced by IoT devices. It covers various technologies and applications, challenges, and gaps in the literature. The paper identifies the technologies used in IoT and reviews their applications. It also discusses the challenges and security issues related to IoT, such as DDOS attacks, ad-hoc networks, configuration issues, and malware attacks. The paper concludes with future research directions to improve the privacy of IoT networks.