nameko pit avoidance note: avoid frequent instantiation of ClusterRpcProxy
See an article Use and precautions of nameko , there is a paragraph about initiating a remote callrpc is followed by the value of the class variable name in the microservice definition, that is, the microservice name, followed by the rpc method, using call_async is called asynchronously, and result is called_ async. result() will wait for the a ...
Added by lavender on Wed, 05 Jan 2022 15:42:16 +0200
GoFrame framework: adding tracing Middleware
introduceThrough a complete example, based on gogf/gf Add tracing middleware to microservices.What is tracing middleware?The Tracing middleware will record the Tracing data for each API request, which can be viewed by users using tools like Jaeger.We will use rk-boot To start gogf/gf Microservices.rk-boot Is a framework that can start a variety ...
Added by noobyphpchick on Wed, 05 Jan 2022 10:59:21 +0200
[Go language practice] (10) Go micro micro micro service implementation simple memo | user login and registration
Write in front
Implementation of simple memo based on go micro V2 version. In this chapter, we first realize the user login and registration function
Go micro framework
Structure diagram
Simply put, the browser accesses the gateway server, finds the service and checks whether it exists. If so, it requests the service, and then re ...
Added by scotch33 on Wed, 05 Jan 2022 10:23:29 +0200
SpringCloud service gateway quickly landed in practice
Application of service gateway in microservice
Foreign service challenges
The application system of microservice architecture is very large. The basic components that need to be deployed independently include registration center, configuration center and service bus, Turbine exception aggregation and monitoring disk, call chain tracki ...
Added by pollysal on Wed, 05 Jan 2022 08:19:15 +0200
Getting started with Spring cloud-2: building order module services
note: this spring cloud introduction demo is to make an order module micro service.
1. Order micro service
the business logic of this introductory demo is to call the order micro service, that is, when the user places an order, we need to call the order micro service to place an order, and we can also view our order. Therefo ...
Added by w.geoghegan on Tue, 04 Jan 2022 21:17:28 +0200
An implementation of micro service authentication
This article mainly introduces the implementation of authentication based on the combination of client token and gateway API.
In this way, the request header or parameter of each request must carry a token, and all requests must pass through the gateway, which effectively hides the micro service.
At present, there are common ways to generate ...
Added by daglasen on Tue, 04 Jan 2022 17:02:44 +0200
GoFrame framework: Basic Auth Middleware
introduceThrough a complete example, in gogf/gf Add Basic Auth middleware to microservices.What is HTTP Basic Auth middleware?
Basic Auth middleware will intercept each API request and verify the verification of Basic Auth or X-API-Key.We will use rk-boot To start gogf/gf Microservices.rk-boot Is a framework that can start a variety of Web serv ...
Added by GrizzlyBear on Tue, 04 Jan 2022 15:44:40 +0200
Deploying Spring Native based microservices using Knative
In this article, you will learn how to run Spring Boot microservices, which communicate with each other on Knative. I also showed you how to use GraalVM to prepare a native image of a Spring Boot application. We will then run it on Kubernetes using the Skaffold and jibsave plug-ins.
On Knative, you can run any type of application, not just fun ...
Added by PHPAnx on Tue, 04 Jan 2022 12:25:48 +0200
Design and implementation of service load balancing
problem
A service instance can process requests is limited. If the concurrent access of a service instance is relatively large, we will start multiple service instances and let these service instances process concurrent requests with certain policy balancing (polling, weight, random, hash, etc.). How is the service load balancing (Nacos client ...
Added by mikeweb on Tue, 04 Jan 2022 06:17:55 +0200
Microservice deployment on k8s platform
Micro services involved
demo involving three microservices:
Service registration and discovery: Eureka serverManagement service: admin serviceUser service: User Service
The management service and User service will register with eureka. When accessing the add user api of the Admin service, the Admin service will call the add user api of the U ...
Added by jcubie on Tue, 04 Jan 2022 00:19:23 +0200