How to use native RPC and microservice in golang

How to use native RPC and microservice in golang Microservice 1. What is micro service It uses a set of small services to develop a single application. Each service runs in an independent process. Generally, it uses lightweight communication mechanism to interconnect, and they can be deployed UTF-8...

Posted by tendrousbeastie on Thu, 13 May 2021 02:34:39 +0930

Based on the case of custom RPC based on Netty, it is reformed. Implementation of registration and discovery mechanism of simple version service based on Zookeeper

1, Transformation requirements: 1. Programming 1: Start two servers to register IP and port information to Zookeeper automatically;When the client starts, it gets all the node information of the service provider from Zookeeper, and the client establishes a connection with each server;When a serUTF-8...

Posted by Whyme on Sun, 16 May 2021 07:24:56 +0930

[RPC] - Introduction to RPC & the simplest implementation of RPC

1, Historical background From single machine to distributed, there are many distributed communication modes The oldest and most efficient, and never out of date, TCP/UDP binary transmission. In fact, all communication methods are TCP/UDP in the final analysis CORBA (common object request brokeUTF-8...

Posted by walter8111 on Sun, 23 May 2021 06:50:34 +0930

RPC simple to use, write remote calculator

1. Introduction to RPC RPC is the abbreviation of Remote Procedure Call, which can be used to call functions or procedures of remote machine on local machine. The calling process is as follows: 2. External data representation (XDR) 2.1 introduction XDR is the standard of data description and coUTF-8...

Posted by fansphp on Sat, 29 May 2021 06:05:35 +0930

[RPC] - RPC based on Netty

Network transmission from BIO to NIO, serialization to reduce the length of the byte stream, improve the efficiency of serialization and deserialization 1, Netty server and client 1. server 1.1 NettyServer The server receives the RpcRquest request from the client, and the corresponding processUTF-8...

Posted by downfall on Tue, 08 Jun 2021 05:20:56 +0930

Dubbo's service registration and publishing

Service registration and publishing, the book goes back, and then analyzes dubbo's service registration and publishing. First, learn how dubbo parses custom tags. The first is xml Under Dubbo config spring in the Dubbo config module, find the spring.handlers file under META-INF under resources.UTF-8...

Posted by jigsawsoul on Sat, 12 Jun 2021 06:34:52 +0930

Dubbo source code analysis - Dubbo protocol analysis

preface: Dubbo provides a variety of protocols for interaction between service consumers and providers. From the Dubbo framework level (Reference: https://dubbo.apache.org/zh/docsv2.7/dev/design/ ), the Dubbo agreement is located at: How to understand these agreements? I think it can be understUTF-8...

Posted by nishanthc12 on Wed, 08 Dec 2021 11:40:46 +1030

Handwriting RPC optimization

After the first nine quarters (thousands of difficulties and obstacles), we finally got the desired result, but is it over? As a qualified programmer, you must learn to say no to requirements!, Er, I didn't drink. Why did I tell the truth? As a qualified programmer, you must learn to say no to UTF-8...

Posted by buraks78 on Fri, 10 Dec 2021 08:48:09 +1030

Dubbo source code analysis - implicit parameter passing

preface: In Dubbo, a policy called implicit parameter passing is provided for provider s and consumer s, which can be used to pass parameters between them. This paper first shows its use process through an example, and then analyzes its transmission process through the source code. 1. Example aUTF-8...

Posted by ClarkF1 on Sun, 12 Dec 2021 21:40:28 +1030

Spring cloud RPC core principles: RxJava responsive programming framework, transformation operators

Conversion operator This section introduces three conversion operators of RxJava: map operator, flatMap operator and scan operator. map operator The map operator accepts a conversion function, applies the conversion function to each element in the message flow ejected by Observable, and the conUTF-8...

Posted by jkm4201 on Sat, 18 Dec 2021 22:03:24 +1030