Spring Cloud-based distributed remote image consultation system and method
Through the distributed remote imaging consultation system based on Spring Cloud, the business logic is decomposed using the gateway and microservice architecture, the performance bottleneck problem of traditional single-point services in high concurrent access is solved, efficient image data processing and cross-platform sharing is realized, and the system flexibility and scalability is enhanced.
Patent Information
- Application Number
- CN202510923155.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-04
- Publication Date
- 2025-08-05
AI Technical Summary
Traditional single-point remote imaging consultation systems are difficult to cope with high concurrent access, have performance bottlenecks and insufficient scalability, and the system is prone to crash when facing large-scale data exchange, affecting user experience and business continuity.
The distributed remote image consultation system based on Spring Cloud is adopted, and the gateway, service registration and discovery cluster, microservices and sharded database is used to realize the decomposition and distributed storage of business logic through load balancing and multi-threaded concurrency processing mechanisms, enhancing system flexibility and scalability.
It significantly improves the system throughput and high concurrent processing capabilities, ensures the stability and availability of the system, supports instant processing of massive data and cross-platform sharing, and meets the efficient operation needs of modern medical imaging systems.
Smart Images

Figure CN120434294A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of remote image consultation, and in particular to a distributed remote image consultation system and method based on Spring Cloud. Background Art
[0002] Most existing remote imaging consultation systems on the market utilize a single-point architecture. Amidst the rapidly evolving healthcare industry, these systems are increasingly unable to meet the growing demand for high-concurrency imaging data processing. As healthcare institutions demand more efficient, real-time data access, the limitations of these traditional systems are becoming increasingly apparent. Performance bottlenecks and insufficient scalability are particularly prominent when dealing with large-scale, rapid data exchange and complex application scenarios.
[0003] For example, monolithic applications often rely on vertical scaling (increasing hardware resources) to improve performance, but this approach has physical limitations. As the number of users and request frequency increase, the system is prone to response delays, timeouts, and even crashes.
[0004] For example, the traditional single-point service architecture centrally processes all requests and lacks redundant design. As a result, once the node fails or undergoes maintenance, the entire system will be unable to provide services, affecting user experience and business continuity.
[0005] For example, a single entry point handles all business logic, and different services share the same code base and operating environment, making it difficult to quickly adjust or optimize a service according to specific needs, and also limiting the application of new technology stacks.
[0006] For example, in a single-point architecture, all data operations are concentrated on the same database instance, without effective partitioning and replication strategies. When faced with a large number of read and write requests, the database becomes a bottleneck, reducing the overall data processing speed and system throughput.
[0007] Therefore, in order to adapt to the needs of modern medical services, it is urgent to build a more intelligent and efficient medical imaging consultation system to support the real-time processing and cross-platform sharing of massive data, and ensure the smooth progress of online clinical diagnosis and treatment. Summary of the Invention
[0008] In order to solve the technical problems existing in the background technology, the present invention proposes a distributed remote image consultation system and method based on Spring Cloud.
[0009] The present invention proposes a distributed remote imaging consultation system based on Spring Cloud, comprising: The gateway is used to receive HTTP / HTTPS requests initiated by users through load balancing, pre-process the HTTP / HTTPS requests, and forward the pre-processed HTTP / HTTPS requests to the service registration and discovery cluster; The service registration and discovery cluster is used to determine the corresponding microservice in the business microservice cluster based on the pre-processed HTTP / HTTPS requests, and forward the pre-processed HTTP / HTTPS requests to the corresponding microservice; Microservices are used to perform business logic processing based on pre-processed HTTP / HTTPS requests and transmit the results of business logic processing back to the gateway; The gateway is also used to construct an HTTP / HTTPS response based on the results of business logic processing and send the HTTP / HTTPS response to the user who initiated the HTTP / HTTPS request; The image database is used to store the results of business logic processing and the image data required for business logic processing, wherein the image database is a sharded database.
[0010] Preferably, the business microservice cluster includes forwarding microservice, processing microservice, retrieval microservice and image display microservice; the forwarding microservice is used to forward the image to the image database; the image processing microservice is responsible for the image compression and format conversion tasks, the retrieval microservice is used to find and return the corresponding image resources according to the conditions; the image microservice is used to display the image.
[0011] Preferably, each microservice communicates with each other through a message queue based on a lightweight communication protocol.
[0012] Preferably, the distributed remote image consultation system further includes a message middleware, which is used to implement asynchronous communication and decoupling between various microservices.
[0013] Preferably, in the process of the gateway preprocessing the HTTP / HTTPS request, the gateway is used to perform authentication and authorization checks on the received HTTP / HTTPS request, and implement a current limiting strategy for the HTTP / HTTPS request that fails the authentication and authorization check; and perform routing rule parsing on the HTTP / HTTPS request that passes the authentication and authorization check to determine the target microservice of the HTTP / HTTPS request.
[0014] Preferably, the distributed remote image consultation system further comprises an SSO single sign-on cluster, an authorization server cluster, an upload server cluster and a resource server cluster, the SSO cluster and the resource server cluster are communicatively connected to the gateway, and the SSO single sign-on cluster, the authorization server cluster, the upload server cluster and the resource server cluster are communicatively connected in sequence; The SSO cluster includes multiple SSO single-point cluster nodes, which are used to respond to the gateway to perform login authorization authentication for users based on HTTP / HTTPS requests; The authorization server cluster includes multiple authorization server cluster nodes, which are used to perform authorization authentication on users who have passed the login authorization authentication according to HTTP / HTTPS requests; The upload server cluster includes multiple upload servers, which are used to provide system file upload permissions to users who have passed the authorization authentication; The resource server cluster includes multiple resource servers, which are used to provide corresponding resource access rights to users who have passed authorization authentication, and return the upload rights and resource access rights of users who have passed authorization authentication to the gateway.
[0015] Preferably, the distributed remote image consultation system further includes a distributed cache, which is communicatively connected to the image database and the business microservice cluster respectively, and is used to cache the image data required by the business logic.
[0016] Preferably, the gateway is also provided with current limiting rules and circuit breaker strategies.
[0017] Preferably, a message middleware is also included, and the message middleware is used to realize asynchronous communication and decoupling between microservices.
[0018] Preferably, a service discovery module is further included, and the service discovery module is used to automatically register and discover microservice instances in each microservice.
[0019] In a second aspect, the present invention further proposes a distributed remote image consultation method based on Spring Cloud, which is applied to a distributed remote image consultation system based on Spring Cloud as described in any one of the first aspects, comprising: Use the gateway to receive and pre-process HTTP / HTTPS requests initiated by users through load balancing, and forward the pre-processed HTTP / HTTPS requests to the service registration and discovery cluster through the load balancing cluster; Use the service registration and discovery cluster to determine the corresponding microservice in the business microservice cluster based on the pre-processed HTTP / HTTPS request, and forward the pre-processed HTTP / HTTPS request to the corresponding microservice; Use microservices to perform business logic processing based on pre-processed HTTP / HTTPS requests and return the results of business logic processing to the gateway; The gateway receives the results of the business logic processing, constructs an HTTP / HTTPS response based on the received business logic processing results, and sends the HTTP / HTTPS response to the user who initiated the HTTP / HTTPS request; The image database is used to store the image data required for business logic processing and the results of business logic processing; wherein the image database is a sharded database.
[0020] The present invention proposes a Spring Cloud-based distributed remote imaging consultation system and method. The system receives and preprocesses HTTP / HTTPS requests initiated by users through a load balancing and gateway, then forwards the preprocessed HTTP / HTTPS requests to a service registration and discovery cluster. The service registration and discovery cluster determines the corresponding microservice in the business microservice cluster based on the preprocessed HTTP / HTTPS requests and forwards the preprocessed HTTP / HTTPS requests to the corresponding microservice. The microservice performs business logic processing based on the preprocessed HTTP / HTTPS requests, generates the results of the business logic processing, and transmits the results of the business logic processing back to the gateway. The gateway then constructs the results of the business logic processing into an HTTP / HTTPS response and sends the HTTP / HTTPS response to the user who initiated the HTTP / HTTPS request, completing the entire request-response cycle. The present invention uses a microservice architecture to decompose the business into multiple independent microservices, each responsible for a specific functional module, enhancing the system's flexibility and scalability. Furthermore, through a multi-threaded concurrent processing mechanism implemented by the load balancing, gateway, and microservices, the system can process multiple user requests simultaneously, significantly improving the system's throughput. This solves the problem that traditional single-point services are difficult to handle with high concurrent access, providing solid technical support for the efficient operation of modern medical imaging systems. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 This is a block diagram of a Spring Cloud-based distributed remote imaging consultation system in one embodiment of the present invention. DETAILED DESCRIPTION
[0022] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments of the present invention can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0023] First, as Figure 1 As shown, the present invention proposes a distributed remote imaging consultation system based on Spring Cloud, including: a gateway, a load balancing cluster, a service registration and discovery cluster, a business microservice cluster and an imaging database; The gateway is used to receive HTTP / HTTPS requests initiated by users through load balancing, pre-process the HTTP / HTTPS requests, and forward the pre-processed HTTP / HTTPS requests to the service registration and discovery cluster; The service registration and discovery cluster is used to determine the corresponding microservice in the business microservice cluster based on the pre-processed HTTP / HTTPS request, and forward the pre-processed HTTP / HTTPS request to the corresponding microservice; The microservice is used to perform business logic processing based on the pre-processed HTTP / HTTPS requests and transmit the results of the business logic processing back to the gateway; The gateway is also used to construct an HTTP / HTTPS response based on the results of business logic processing and send the HTTP / HTTPS response to the user who initiated the HTTP / HTTPS request; The image database is used to store the image data required for business logic processing and the results of business logic processing; among them, the image database is a sharded database.
[0024] The present invention uses a microservice architecture to decompose the business into multiple independent microservices, each of which is responsible for a specific functional module, thereby enhancing the flexibility and scalability of the system. Moreover, through load balancing, gateways, and microservices, a multi-threaded concurrent processing mechanism is implemented, which can process requests from multiple users at the same time, significantly improving the system throughput, solving the problem that traditional single-point services are difficult to cope with high-concurrency access, and providing solid technical support for the efficient operation of modern medical imaging systems.
[0025] The distributed remote imaging consultation system based on Spring Cloud in this embodiment includes a mini-program end, a mobile end, and a web end.
[0026] The business microservice cluster splits the business system into multiple microservices based on the microservice architecture, and each microservice focuses on processing a specific type of business logic.
[0027] In this embodiment, the business microservice cluster includes multiple microservices, which communicate with each other through message queues based on lightweight communication protocols, ensuring stability and efficiency in high-concurrency scenarios, thereby ensuring high availability and fault tolerance of the system. The lightweight communication protocols include RESTful APIs or gRPC, and the message queues include Kafka.
[0028] In one specific embodiment, the business microservice cluster includes a forwarding microservice, a processing microservice, a retrieval microservice, and an image display microservice; the forwarding microservice is used to forward images to an image database; the image processing microservice is responsible for image compression and format conversion tasks, and the retrieval microservice is used to find and return corresponding image resources based on conditions; the image microservice is used to display images.
[0029] This embodiment uses a microservice architecture to decompose the image processing business into multiple independent microservices, each of which is responsible for a specific functional module, thereby enhancing the flexibility and scalability of the system.
[0030] During the gateway's preprocessing of HTTP / HTTPS requests, the gateway is used to perform authentication and authorization checks on the received HTTP / HTTPS requests, implement a rate limiting policy for HTTP / HTTPS requests that fail authentication and authorization checks to prevent malicious traffic attacks, and perform routing rule parsing on HTTP / HTTPS requests that pass authentication and authorization checks to determine the target microservice for the HTTP / HTTPS requests.
[0031] In this embodiment, the distributed remote imaging consultation system further includes an SSO single sign-on cluster, an authorization server cluster, an upload server cluster, and a resource server cluster. The SSO cluster and the resource server cluster are communicatively connected to the gateway, and the SSO single sign-on cluster, the authorization server cluster, the upload server cluster, and the resource server cluster are communicatively connected in sequence. The SSO cluster includes multiple SSO single-point cluster nodes, which are used to perform login authorization authentication for users based on HTTP / HTTPS requests based on the gateway; The authorization server cluster includes multiple authorization server cluster nodes, which are used to perform authorization authentication on users who have passed the login authorization authentication according to HTTP / HTTPS requests; The upload server cluster includes multiple upload servers, which are used to provide system file upload permissions to users who have passed the authorization authentication; The resource server cluster includes multiple resource servers, which are used to provide corresponding resource access rights to users who have passed authorization authentication, and return the upload rights and resource access rights of users who have passed authorization authentication to the gateway.
[0032] To prevent malicious attacks, this embodiment adds an authentication mechanism by configuring an SSO single sign-on cluster, an authorization server cluster, an upload server cluster, and a resource server cluster. Requests that fail authentication are first screened by the gateway service, and are rejected. This also serves to differentiate menus for users with different permissions, such as administrators and ordinary users.
[0033] In specific implementation, the HTTP request will include the Authorization parameter in the header layer. The gateway service will decrypt it and then encrypt it to the web service. It will analyze whether this parameter is consistent with the pre-set parameters and distinguish user roles based on different parameters.
[0034] Throughout the entire process, the gateway plays a crucial role as a unified entry point. It not only handles the initial processing of requests and the construction of final responses, but also acts as a bridge between microservices, ensuring decoupling and independent evolution. Each microservice focuses on a single responsibility and collaborates with other services through clearly defined interfaces to jointly complete complex business functions.
[0035] It should be understood that the communication connections in this embodiment refer to bidirectional communication connections.
[0036] In this embodiment, the distributed remote image consultation system further includes a distributed cache, which is respectively connected to the image database and the business microservice cluster for communication, and is used to cache image data required by the business logic.
[0037] Since image data is generally large, this embodiment accelerates frequently accessed image data through distributed caching, and can automatically select the nearest data node for read and write operations based on geographic location, reducing network latency, avoiding pulling from the image database again, improving image rendering and reading speeds, reducing pressure on the image database, and improving user experience during image consultations.
[0038] The shard database in this embodiment is a MySQL database or a relational database.
[0039] In the process of building HTTP / HTTPS responses, the gateway receives the results of business logic processing from different microservices, merges and formats the results of business logic processing from different microservices, and finally assembles them into a complete JSON / XML response body.
[0040] In this embodiment, a log and monitoring module is also included. The log and monitoring module is communicated with the gateway and is used for recording and monitoring to facilitate subsequent auditing, fault location and troubleshooting, and performance optimization.
[0041] In one specific embodiment, the service registration and discovery cluster is used to automatically register and discover microservice instances in each microservice using tools such as nacos and Eureka, which simplifies the mutual calling process between services and enhances the dynamic scaling capability.
[0042] In this embodiment, a configuration center module is also included. The configuration center module is used to centrally manage the configuration information of the business microservice cluster, support hot updates and version control, making configuration changes more convenient without affecting existing business logic.
[0043] In this embodiment, the gateway also uses libraries such as Resilience4j and Hystrix to set reasonable current limiting rules and circuit breaking strategies to prevent avalanche effects and ensure system stability and availability.
[0044] In this embodiment, message middleware is also included to achieve asynchronous communication and decoupling between microservices.
[0045] In this embodiment, an object storage database is also included, and the object storage database is used to store image files in the system, such as portraits and photos of inspected cutting images.
[0046] In one specific embodiment, when a consultation is required, the user initiates an upload request based on HTTP / HTTPS. The gateway receives the upload request initiated by the user through load balancing, performs identity authentication and authorization checks based on the upload request, and after passing the identity authentication and authorization checks, opens the corresponding upload permission to the user, so that the user can upload image data according to the upload permission. The service registration and discovery cluster determines the corresponding processing microservice in the business microservice cluster based on the preprocessed upload request. After the upload is completed, it forwards the preprocessed upload request and image data to the corresponding processing microservice; the processing microservice compresses and converts the image data, and the forwarding microservice stores the data affected by the compression and format conversion in the image database.
[0047] In another specific embodiment, during the consultation process, when a retrieval request based on HTTP / HTTPS is received, the gateway receives the retrieval request initiated by the user through load balancing, and performs identity authentication and authorization checks based on the retrieval request. After passing the identity authentication and authorization checks, the corresponding resource access rights are opened to the user to facilitate the user to perform retrieval; the service registration and discovery cluster determines the corresponding retrieval microservice in the business microservice cluster based on the retrieval request, and forwards the pre-processed retrieval request to the retrieval microservice; the retrieval microservice performs retrieval based on the retrieval request and returns the retrieval results to the gateway. The gateway constructs a response based on the retrieval results and sends the response to the user.
[0048] In a second aspect, the present invention further proposes a distributed remote image consultation method based on Spring Cloud, which is applied to a distributed remote image consultation system based on Spring Cloud as described in any one of the first aspects, comprising: Use the gateway to receive and pre-process HTTP / HTTPS requests initiated by users through load balancing, and forward the pre-processed HTTP / HTTPS requests to the service registration and discovery cluster through the load balancing cluster; Use the service registration and discovery cluster to determine the corresponding microservice in the business microservice cluster based on the pre-processed HTTP / HTTPS request, and forward the pre-processed HTTP / HTTPS request to the corresponding microservice; Use microservices to perform business logic processing based on pre-processed HTTP / HTTPS requests and return the results of business logic processing to the gateway; The gateway receives the results of the business logic processing, constructs an HTTP / HTTPS response based on the received business logic processing results, and sends the HTTP / HTTPS response to the user who initiated the HTTP / HTTPS request; The image database is used to store the image data required for business logic processing and the results of business logic processing; wherein the image database is a sharded database.
[0049] The above description is only a preferred specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any technician familiar with the technical field, within the technical scope disclosed by the present invention, who makes equivalent replacements or changes based on the technical solution and inventive concept of the present invention, should be covered by the scope of protection of the present invention.
Claims
1. A distributed remote imaging consultation system based on Spring Cloud, characterized by: include: The gateway is used to receive HTTP / HTTPS requests initiated by users through load balancing, pre-process the HTTP / HTTPS requests, and forward the pre-processed HTTP / HTTPS requests to the service registration and discovery cluster; The service registration and discovery cluster is used to determine the corresponding microservice in the business microservice cluster based on the pre-processed HTTP / HTTPS requests, and forward the pre-processed HTTP / HTTPS requests to the corresponding microservice; Microservices are used to perform business logic processing based on pre-processed HTTP / HTTPS requests and transmit the results of business logic processing back to the gateway; The gateway is also used to construct an HTTP / HTTPS response based on the results of business logic processing and send the HTTP / HTTPS response to the user who initiated the HTTP / HTTPS request; The image database is used to store the results of business logic processing and the image data required for business logic processing; wherein, the image database is a sharded database.
2. The distributed remote imaging consultation system based on Spring Cloud according to claim 1 is characterized in that: The business microservice cluster includes forwarding microservice, processing microservice, retrieval microservice and image display microservice; the forwarding microservice is used to forward images to the image database; the image processing microservice is responsible for image compression and format conversion tasks, the retrieval microservice is used to find and return corresponding image resources according to conditions; the image microservice is used to display images.
3. The distributed remote imaging consultation system based on Spring Cloud according to claim 2 is characterized in that: Each microservice communicates with each other through a message queue based on a lightweight communication protocol.
4. The distributed remote imaging consultation system based on Spring Cloud according to claim 2 is characterized in that: The distributed remote imaging consultation system further includes a message middleware, which is used to implement asynchronous communication and decoupling between various microservices.
5. The distributed remote imaging consultation system based on Spring Cloud according to claim 1 is characterized in that: During the gateway's preprocessing of HTTP / HTTPS requests, the gateway performs authentication and authorization checks on the received HTTP / HTTPS requests, and implements a rate limiting policy for HTTP / HTTPS requests that fail authentication and authorization checks; and performs routing rule parsing on HTTP / HTTPS requests that pass authentication and authorization checks to determine the target microservice for the HTTP / HTTPS requests.
6. The distributed remote imaging consultation system based on Spring Cloud according to claim 5 is characterized in that: The distributed remote image consultation system also includes an SSO single sign-on cluster, an authorization server cluster, an upload server cluster and a resource server cluster. The SSO cluster and the resource server cluster are communicatively connected to the gateway, and the SSO single sign-on cluster, the authorization server cluster, the upload server cluster and the resource server cluster are communicatively connected in sequence. The SSO cluster includes multiple SSO single-point cluster nodes, which are used to perform login authorization authentication for users based on HTTP / HTTPS requests based on the gateway; The authorization server cluster includes multiple authorization server cluster nodes, which are used to perform authorization authentication on users who have passed the login authorization authentication according to HTTP / HTTPS requests; The upload server cluster includes multiple upload servers, which are used to provide system file upload permissions to users who have passed the authorization authentication; The resource server cluster includes multiple resource servers, which are used to provide corresponding resource access rights to users who have passed authorization authentication, and return the upload rights and resource access rights of users who have passed authorization authentication to the gateway.
7. The distributed remote imaging consultation system based on Spring Cloud according to claim 1 is characterized in that: The distributed remote image consultation system also includes a distributed cache, which is respectively connected to the image database and the business microservice cluster for communication, and is used to cache the image data required by the business logic.
8. The distributed remote imaging consultation system based on Spring Cloud according to claim 1 is characterized in that: It also includes a log and monitoring module, which is connected to the gateway for communication and is used for recording and monitoring.
9. The distributed remote imaging consultation system based on Spring Cloud according to claim 1 is characterized in that: The gateway also has current limiting rules and circuit breaker strategies.
10. A distributed remote image consultation method based on Spring Cloud, applied to a distributed remote image consultation system based on Spring Cloud according to any one of claims 1 to 9, characterized in that: include: Use the gateway to receive and pre-process HTTP / HTTPS requests initiated by users through load balancing, and forward the pre-processed HTTP / HTTPS requests to the service registration and discovery cluster through the load balancing cluster; Use the service registration and discovery cluster to determine the corresponding microservice in the business microservice cluster based on the pre-processed HTTP / HTTPS request, and forward the pre-processed HTTP / HTTPS request to the corresponding microservice; Use microservices to perform business logic processing based on pre-processed HTTP / HTTPS requests and return the results of business logic processing to the gateway; The gateway receives the results of the business logic processing, constructs an HTTP / HTTPS response based on the received business logic processing results, and sends the HTTP / HTTPS response to the user who initiated the HTTP / HTTPS request; The image database is used to store the image data required for business logic processing and the results of business logic processing; wherein the image database is a sharded database.
Citation Information
Patent Citations
Plug-in type dynamic registration distributed micro-service gateway system
CN112738184A
Micro-service gray release method, device and system, storage medium and electronic equipment
CN115314547A
API interface calling method and system based on data collection
CN117278640A
Display device
KR1020230043283A