This application relates to a service
processing method, apparatus,
computer device, computer-readable storage medium, and
computer program product based on a peer-to-peer protocol. The method includes: obtaining the address information of the sender of a service registration request; determining the target geographical region to which the sender of the service registration request belongs based on the address information; obtaining real-time load information and
server deployment locations corresponding to multiple optional peer-to-peer service nodes; matching the target geographical region with the
server deployment locations; and determining the target peer-to-peer service node corresponding to the sender of the service registration request from the multiple optional peer-to-peer service nodes based on the location matching result and the real-time load information; and returning the target
server address of the target peer-to-peer service node to the sender of the service registration request, so that the sender of the service registration request can establish a connection with the target peer-to-peer service node based on the target server address. This method can improve the communication performance of peer-to-
peer communication.