This application provides a service processing method and an electronic device; the method includes: acquiring a first service; generating a first job based on user interest information of a first user associated with the first service, service scenario information of the first service, and performance information of a server cluster; wherein the first job is used to instruct a target server to execute the first service; and executing the first job. This application enables efficient utilization of resources.