This invention discloses a method, apparatus, electronic device, and program product for cross-region microservice invocation, relating to the field of distributed technology. The method includes: initiating a mapping relationship retrieval request to a dynamic configuration center; obtaining a first mapping set and a second mapping set from the dynamic configuration center; querying the first mapping set to obtain the target service deployment partition corresponding to the target distributed service; if the partition matches the partition to which the service
consumer belongs, initiating a call request to the target distributed service through a
remote procedure call strategy; if they do not match, querying the second mapping set to obtain the cross-region
service gateway corresponding to the target distributed service, and initiating a call request to the cross-region
service gateway. This invention solves the technical problem in related technologies where, in distributed microservice architectures with complex business call relationships, a single
consumer may need to subscribe to multiple regional registry centers, leading to
high memory resource consumption during cross-region service invocation.