Edge computing supports delay-sensitive Internet of Things applications by processing requests close to users. Heterogeneous nodes and limited resources make balancing service quality and energy use difficult. Node selection affects communication delay, while CPU allocation affects execution time, so the two decisions must be coordinated. This thesis proposes a three-stage framework for container scheduling and CPU allocation in a heterogeneous edge environment. First, requests are prioritized using their deadlines, input sizes, computational demands, and delay sensitivity. Second, the framework estimates the CPU capacity required on each node after accounting for batching and transmission delays, then identifies feasible placements. Third, a genetic algorithm jointly selects nodes and CPU allocations to maximize priority-weighted Quality of Experience (QoE) while controlling energy consumption. QoE is measured relative to each request’s deadline, and energy is calculated using a linear utilization-based power model. The framework was evaluated through workload and node scalability experiments, covering three workload intensities and three infrastructure sizes with ten matched random seeds per configuration. Under medium and heavy workloads, the proposed method achieved significantly higher total QoE and fewer rejected requests than First-Fit, Random, UBGA, and EWOA. Under heavy workload, total QoE increased by 4.41% compared with UBGA and 7.81% compared with EWOA, while the common evaluation objective score improved by 3.98% and 6.10%, respectively. Total energy consumption was 8.46% lower than UBGA and 3.17% lower than EWOA; however, the energy reduction relative to EWOA was not statistically significant. With five nodes, the proposed method significantly reduced energy consumption by 26.5%–39.6% compared with the four baselines. Under light workload, it maintained comparable QoE while significantly reducing energy consumption. These findings demonstrate that joint container scheduling and CPU allocation improves the balance between service quality and energy consumption, with service gains becoming more pronounced as resource contention increases.