This application discloses a method, apparatus,
system, electronic device, and medium for
processing API requests. The method includes: loading multiple custom processors pre-built in a
database into a
distributed memory grid, wherein each custom processor has a first mapping relationship with an API request, and a second mapping relationship between the API request and its corresponding
processing method is established in the custom processor based on a reflection mechanism; receiving an API request and routing it to a corresponding target custom processor according to the first mapping relationship, so that the target custom processor determines the target
processing method corresponding to the API request according to the second mapping relationship; and invoking the target processing method to process the API request. This application improves the API registration method, and the distributed service cluster is simple to deploy, easy to expand, and avoids the problem of distributed consistency from the root.