一种远程服务调用方法、设备及介质
By encapsulating rpcClient and pre-configuring a service database, the process of calling RPC interfaces in a microservice architecture is simplified, the complexity of inter-service network communication is resolved, and testing efficiency is improved.
CN116170486BActive Publication Date: 2026-07-17INSPUR GENERSOFT CO LTD
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- INSPUR GENERSOFT CO LTD
- Filing Date
- 2023-02-01
- Publication Date
- 2026-07-17
AI Technical Summary
Technical Problem
Because the services are deployed on different machines, calls between services require network communication, making the remote service call process complex and prone to errors.
Method used
By encapsulating rpcClient, RPC interface calls for various service units in a microservice architecture are implemented, supporting multiple parameter types and return values. Different POST requests can be constructed using a pre-built service database, simplifying the coding process for testers.
Benefits of technology
It enables fast and efficient RPC interface testing, simplifies the coding process for testers, and improves testing efficiency.
✦ Generated by Eureka AI based on patent content.
Smart Images

Figure CN116170486B_ABST
Abstract
本申请实施例公开了一种远程服务调用方法、设备及介质。获取当前用户发送的微服务调用请求;其中,微服务请求中至少包括待调用RPC名称;将微服务调用请求,与预置黑名单数据库中的多个异常微服务调用信息进行比对;在比对结果不一致的情况下,基于微服务调用请求,在预置服务数据库中确定出相应的RPC信息;其中,RPC信息至少包括RPC接口包名、RPC接口类名、RPC方法名、被调参数以及返回值类型中的一项;基于所需返回值对应的类型,构造不同的POST请求,以通过POST请求对RPC信息对应的RPC接口进行调用。通过上述方法,提高RPC接口测试效率。
Need to check novelty before this filing date? Find Prior Art