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

Distributed remote calling method based on zookeeper and netty

A remote invocation and distributed technology, applied in the field of Internet applications, can solve the problems of large concurrent access and difficult system maintenance.

Active Publication Date: 2018-06-29
CNIS TECH CO LTD
View PDF6 Cites 23 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
  • Distributed remote calling method based on zookeeper and netty
  • Distributed remote calling 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 invention provides a distributed remote calling method based on zookeeper and netty. A server module which is used for providing remote services and allowing clients to call and a client module for encapsulating local calls are included; the server module is used for conducting service encapsulation to encapsulate services and provide unique access points and conducting service publishing andservice registration; and the client module is used for conducting dynamic proxy, service seeking and service calling, wherein in dynamic proxy, service implementations of servers are acquired by calling proxy classes, in service seeking, IPs and ports of registration services are acquired from the Zookeeper by means of interfaces and methods which are called by requests, the service with a minimum weight value is selected, and meanwhile the weight is set as a maximum value in a same service cluster, and in service calling, client requests are initiated through the Netty, a processing class assembly line is bound, request objects are encapsulated and serialized and then sent to the server module, and the server module responds to data serialization and then transmits data to service logics.

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 Applications(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