This document presents a cooperative hierarchical approach for resource allocation in edge computing systems, specifically tailored for mobile and IoT applications. The proposed method focuses on efficiently utilizing edge resources by distributing pre-partitioned application modules among neighboring edge nodes, thereby reducing network traffic and improving service response times. Simulation results demonstrate that this approach leads to reduced delays and enhanced overall network throughput compared to traditional cloud methods.