Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A distributed remote call method based on zookeeper and netty

A remote call and distributed technology, applied in the field of Internet applications, can solve problems such as difficult system maintenance and large number of concurrent visits

Active Publication Date: 2021-01-15
CNIS TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The invention provides a distributed remote call method based on zookeeper and netty, which is used to solve the problems of large concurrent visits of Internet applications and difficult system maintenance. The server classifies according to the business, registers the service with Zookeeper, and ensures the distributed service call, and can decouple business from business; use Netty to build a communication framework to ensure the non-blocking of remote call threads; use dynamic proxy and reflection technology to ensure the simplicity of remote call

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A distributed remote call method based on zookeeper and netty
  • A distributed remote call method based on zookeeper and netty

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.

[0035] The following examples are only used to illustrate the present invention rather than limitation, and can be extended to other modifications, changes, applications and embodiments in application, and all such modifications, changes, applications and embodiments are considered to be within the scope of the present invention Inside.

[0036] The invention mainly relates to a server module, a client module, and a request process.

[0037] The server module mainly provides remote services for clients to call, and can be deployed in a distributed manner.

[0038] A1. Service encapsulation, mainly encapsulating services, providing a unique access point, and saving system memory.

[0039] A2. Service publishing is mainly to publish services through Netty, start Netty services, open select polling mechani...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention provides a distributed remote call method based on zookeeper and netty, including a server module for providing remote services and calling by clients, and a client module for encapsulating local calls. The server module includes service Encapsulation, encapsulating the service, providing a unique access point, and performing service publishing and service registration; the client module includes a dynamic proxy, which obtains the service implementation of the server by calling the proxy class; includes service search, the interface called by the request and The method obtains the IP and port of the registered service from Zookeeper, selects the service with the smallest weight value, and sets the weight to the maximum value in the same service cluster; it also includes service calls, initiates client requests through Netty, and binds processing pipelines , encapsulate the request object and serialize it and send it to the server module, and the server module responds with deserialized data and passes it to the business logic.

Description

technical field [0001] The invention belongs to the technical field of Internet applications, relates to a remote calling method, in particular to a distributed remote calling method based on zookeeper and netty. Background technique [0002] With the rapid development of the Internet, the number of users has grown rapidly, and the number of concurrent visits to Internet applications has increased. Therefore, we have started to adopt distributed deployment, but new problems have arisen. When we want to modify a certain business, All application services need to be upgraded, which has a great impact on user experience and system maintenance. [0003] It is found that the vertical architecture of the Web (network) container can no longer meet the needs, and it is necessary to split the application for service, so as to improve the efficiency of development and maintenance. After the vertical architecture is split, the application system and the server need to communicate thro...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/08H04L29/06
CPCH04L67/10H04L67/60H04L67/133
Inventor 付君辉李宏伟代宏伟
Owner CNIS TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products