etcd cluster construction of microservice automation

1, Set up etcd cluster There are three main types of self building clusters: Static discovery: the nodes in the etcd cluster are known in advance. When starting, directly specify the addresses of each node of the etcd through the -- initial cluster parameter.Etcd dynamic discovery: the premise of static configuration is that the informati ...

Posted by Andy82 on Tue, 01 Mar 2022 13:53:39 +0100

go microservices - gRPC installation and use

gRPC introduction and installation 1, What is gRPC gRPC introduction gRPC is a high-performance remote procedure call (RPC) framework open source by Google, which can run in any environment. The framework provides load balancing, tracking, intelligent monitoring, authentication and other functions, which can realize the efficient con ...

Posted by phillfox on Mon, 28 Feb 2022 02:24:44 +0100

Microservice-OpenFeign service interface call

What is OpenFeign Feign is a declarative Web service client that, in other words, lets you invoke a web service as easily as a method. What can Feign do Feign is designed to make writing Java Http clients easier. Previously, when Ribbon+RestTemplate was used, the encapsulation of http requests using RestTemplate formed a set of templated ...

Posted by benwestgarth on Sat, 26 Feb 2022 18:19:47 +0100

Feign remote call lost request header

In business, you need to use modules A and B, which use spring Session to share Session data. The business in module B can only be operated after the user logs in. When A calls B's service, it cannot obtain the user's Session information in module B, resulting in module B determining that the requesting user has not logged in, resulting in modu ...

Posted by receiver on Fri, 25 Feb 2022 15:22:46 +0100

Jenkins microservice continuous integration Xi (Spring Cloud microservice II)

1, Jenkins+Docker+SpringCloud continuous integration process description General process description: Developers submit their code to the Gitlab code warehouse every day.Jenkins pulls the project source code from Gitlab, compiles it and makes it into a jar package, then builds it into a Docker image, and uploads the image to the privat ...

Posted by kristofferlc on Fri, 25 Feb 2022 07:10:21 +0100

Micro service design guidance - tips for improving Redis circular writing by 10 times

brief introduction The architecture with microservices does not represent good performance, but the architecture using microservices must require good performance. This sentence is not contradictory. The contradiction is that many people think that microservice architecture represents high concurrency, but it is not. We have the theory of &quo ...

Posted by enlight on Fri, 25 Feb 2022 06:25:21 +0100

Changgou mall VI: Micro service gateway and jwt token

Microservice gateway Basic concepts Each service of microservice generally has different addresses. A service of an external client may call many interfaces, which will bring the following problems The client will request different micro services many times, and the address is complexThere are cross domain requests and the processing is comp ...

Posted by cahva on Wed, 23 Feb 2022 14:10:09 +0100

Microservice fuse current limiting degraded Hystrix

1, Core knowledge of service fault tolerance 1.1 avalanche effect In microservice architecture, it is very common for A request to call multiple services. For example, when the client accesses service A, service A needs to call service B, and service B needs to call service C. due to network reasons or its own reasons, if service B or ser ...

Posted by dw89 on Sun, 20 Feb 2022 13:56:06 +0100

Design Guidance for Micro Services - Solving cascade avalanches and efficiency between systems caused by traditional mass runs using cloud native micro services

Problem Description This is also a real production accident, as shown in the following figure This "avalanche" is an internal system avalanche within an enterprise. We all know that if it exists on external http calls, including all restful, soap requests, HTTP type calls: a->b->c->d assumes that system B is an "int ...

Posted by cdickson on Sun, 20 Feb 2022 03:32:08 +0100

Microservice development framework: introduction to eureka and nacos

I Microservices 1. Single architecture and distributed architecture Monomer architectureDistributed architecture The system is split according to business functions, and each business module is developed as an independent project to become a service advantage: Disadvantages: the strength of service splitting, how to maintain the address of se ...

Posted by garblar on Fri, 18 Feb 2022 16:35:58 +0100