SummaryCloud computing is quickly becoming a common commercial model for software delivery and services, enabling companies to save maintenance, infrastructure, and labor expenses. Also, Internet of Things (IoT) apps are designed to ease developers' and users' access to networks of smart services, devices, and data. Although cloud services give nearly infinite resources, their reach is constrained. Designing coherent and organized apps is made possible by integrating the cloud and IoT. Expanding facilities by combining services is a critical component of this technology. Various services may be presented in this environment based on the user's demands. Considering their Quality of Service (QoS) attributes, discovering the appropriate available atomic services to construct the needed composite service with their collaboration in an orchestration model is an NP‐hard issue. This article suggests a service composition method using Grey Wolf Optimization (GWO) and MapReduce framework to compose services with optimized QoS. The simulation outcomes illustrate cost, availability, response time, and energy‐saving improvements through the suggested approach. Comparing the suggested technique to three baseline algorithms, the average gain is a 40% improvement in energy savings, a 14% decrease in response time, an 11% increase in availability, and a 24% drop in cost.