1. Compilation environment description 1. grpc version: V1.58.0 2. gcc version: gcc7 or above (currently using gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) 3. cmake version: 3.8 or above (currently using cmake version 3.19.6) 4. Operating system version: Ubuntu16.04 5. apt source: Alibaba Cloud 2. Compilation environment preparation Note: Since Ubuntu 16.04 comes with its own compilation […]
Tag: rpc
Binlog printing principle in gRPC
Principle of Binlog printing in gRPC gRPC supports outputting request call parameters, header and other information to a file in binary form Use The dependency of binlog is in grpc-services, so this dependency is required Specified when creating the Channel BinaryLog binaryLog = BinaryLogs.createBinaryLog(new TempFileSink(), “*”); this.channel = ManagedChannelBuilder.forAddress(host, port) .usePlaintext() .setBinaryLog(binaryLog) .build(); When creating, […]
Microservice Development Manual GRPC
GRPC is a high-performance, universal open source RPC framework developed based on the HTTP/2 protocol standard and Protobuf serialization protocol, and supports many development languages. Article directory 1 Introduction 1.1 http2 1.1.1 Binary transmission 1.1.2 Header compression 1.1.3 Multiplexing 1.1.4 Server push 1.2 Protobuf 1.2.1 Advantages 1.2.2 Disadvantages 1.2.3 Comparison with other serialization methods 2 […]
SpringBoot integrates high-performance microservice framework gRPC
As a mainstream microservice framework, Spring Boot has a mature community ecosystem. The market is widely used. For your convenience, we have compiled a series of introductory manuals for quick integration of common middleware based on spring boot, involving common open source components such as RPC, cache, message queue, sub-library and sub-table, registration center, distributed […]
Application of gRPC in Spring Cloud
1. Foreword In microservice development, there are generally two ways to call between services: Feign and RestTemplate. However, in actual use, especially Feign, there are various restrictions and limitations, such as: HTTP request method, return type, etc. Sometimes it makes you feel that everything is awkward. In microservice projects, calls between services are very common […]
gRPC interceptors and metadata
Article directory Introduction Client interceptor case Server-side interceptor case Authentication Introduction Users can pass additional information (i.e. HTTP/2 Header information) by accessing or modifying Metadata, such as authentication information, TraceId, RequestId, etc. Metadata stores data in the form of key-value. The key is a string type and the value is a string array type. The […]
gRPC gateway integrates swagger
1. Gateway integrates swagger 1. In order to simplify the actual combat process, the services exposed by gRPC-Gateway do not use https, but http, but swagger-ui The calling service provided by The service is https, so you need to specify swagger in the proto file to call the service with http. When specifying files will […]
RPC interface testing technology – websocket automated testing practice!
WebSocket is a type of full-duplex communication on a single TCP connection (Full Duplex is a term for communication transmission. Communication allows data to be transmitted in both directions simultaneously, and it is equivalent in capability to the combination of two simplex communication methods. Full-duplex refers to a protocol that can transmit signals in both […]
[Gradio-Windows-Linux] Solve the problem that share=True cannot create a shared link, frpc_windows_amd64_v0.2 is missing
Foreword With the rapid development of machine learning technology, it has become increasingly important to deploy trained models into practical applications. Gradio, as a powerful open source library, provides us with a simple and efficient solution. However, you may encounter some problems recently when using share=True. Specifically, the problem may occur when the frpc_windows_amd64_v0.2 file […]
Implementing gRPC load balancing in a kubernetes environment
Foreword I wrote an introductory article about gRPC some time ago, but there was a hole left unfilled at the end: That is, gRPC‘s load balancing problem, because the volume of business requests at that time was not large, and the company did not have this regard for Istio. We are familiar with service grid-like […]