The practical deployment of Federated Learning (FL) is limited by the dual heterogeneity of clients at both data and system levels, and existing client selection strategies often focus on a single dimension of heterogeneity, lacking adaptability to dynamically changing client environments. To address the above problems, a dual-heterogeneity-oriented service-defined federated learning client selection algorithm, FedQos, was proposed. First, to address system heterogeneity, federated learning clients were restructured into schedulable and measurable Artificial Intelligence (AI) microservice units. Client response time was dynamically evaluated through a Quality-of-Service (QoS)-aware scheduling algorithm, and clients with high system reliability were prioritized to overcome system heterogeneity. Second, the potential value of candidate client data was quantified by computing the Mutual Information (MI) between the local data of candidate clients and the global model, and clients with higher potential value were selected to accelerate convergence. Furthermore, an information theory-based regularization method was incorporated into local client training to address data heterogeneity and improve the generalization performance of the federated learning model. Experimental results on the CIFAR-10 dataset show that the FedQos algorithm's test accuracy is improved by up to 4.62 percentage points compared to that of the suboptimal baseline algorithm, Pow-d (Power-of-choice), when the data follow a Pathological Non-Independent and Identically Distributed (Pathological Non-IID) distribution; and the FedQos algorithm's test accuracy is improved by up to 2.38 percentage points when the data exhibit Dirichlet Non-IID. In terms of training efficiency, the FedQos algorithm achieves the shortest cumulative time to complete the same number of communication rounds across all test scenarios. In particular, in scenarios with high data heterogeneity, the FedQos algorithm reduces the training time by an average of 19.37% compared to the baseline algorithm FedAvg (Federated Averaging). FedQos algorithm has significant improvements in both test accuracy and training efficiency.