In this work, a new orchestration of Consumer to Fog to Cloud (C2F2C) based framework is proposed for efficiently managing the resources in residential buildings. C2F2C is a three layered framework consisting of cloud layer, fog layer and consumer layer. Cloud layer deals with on-demand delivery of the consumer’s demands. Resource management is intelligently done through the fog layer because it reduces the latency and enhances the reliability of cloud. Consumer layer is based on the residential users and their electricity demands from the six regions of the world. These regions are categorized on the bases of the continents. Two control parameters are considered: clusters of buildings and load requests, whereas four performance parameters are considered: Request Per Hour (RPH), Response Time (RT), Processing Time (PT) and cost in terms of Virtual Machines (VMs), Microgrids (MGs) and data transfer. These parameters are analysed by the round robin algorithm, equally spread current execution algorithm and our proposed algorithm shortest job first. Two scenarios are used in the simulations: resource allocation using MGs and resource allocation using MGs and power storage devices for checking the effectiveness of the proposed work. The simulation results of the proposed technique show that it has outperformed the previous techniques in terms of the above-mentioned parameters. There exists a tradeoff in the PT and RT as compared to cost of VM, MG and data transfer.