Parameter passing when calling between OpenFeign component services

Communication mode between microservices?? There are two main modes of communication between services: 1. Based on Http application layer protocol characteristic 1. Use http rest and json for data exchange 2. Low efficiency, but low coupling (low coupling means that if different services are developed using different technical f ...

Posted by arunmj82 on Wed, 05 Jan 2022 05:30:53 +0100

Source code analysis of Spring Cloud OpenFeign

OpenFeign is an upgrade of Spring Cloud based on Feign. Using Feign, you can simply initiate remote calls. All we need to do is add the OpenFeign dependency, add the annotation @ EnableFeignClients on the project startup class, then create the FeignClient client interface, add the corresponding interface method, and then we can initiate the rem ...

Posted by powaz on Tue, 04 Jan 2022 23:39:35 +0100

Gateway configuration introduction

Route predicate factories configuration Official documents: https://docs.spring.io/spring-cloud-gateway/docs/current/reference/html/#gateway-request-predicates-factories The spring cloud gateway includes many built-in assertion factories, all of which match different attributes of HTTP requests. The details are as follows: 1. Assertion fa ...

Posted by apollo on Tue, 04 Jan 2022 20:52:28 +0100

SpringCloud Basics - 10 - service Gateway - Gateway

1. General Zuul official website of previous generation gateway The official website of spring cloud gateway has changed a lot, and the actual situation shall prevail Gateway is an API gateway service built on the Spring ecosystem, which is based on technologies such as Spring5, springboot2 and ProjectReactor. Gateway aims to provide a sim ...

Posted by gersh on Tue, 04 Jan 2022 17:20:12 +0100

Seata1. Version 4.0 integrates the deep pit stepped by Nacos - not support register type: null (compatible with springboot, Cloud and CloudAlibaba versions)?

Problem: an error is reported when building the Seata version of distributed transactions, and the prompt NotSupportYetException: not support register type: null exception prompt shows that there should be a compatibility problem with the version: Exception in thread "main" io.seata.common.exception.NotSupportYetException: not support register ...

Posted by Dark_Archon on Tue, 04 Jan 2022 13:43:01 +0100

Teach you how to build a new generation of service Gateway for spring cloud project integration Gateway

Introduction to Gateway What is an API gateway? As an API architecture, it is used to protect, enhance and control access to API services. An API gateway is an application or service (providing REST API interface services) the previous system is used to manage authorization, access control and traffic restrictions, so that the REST API interf ...

Posted by kavitam on Tue, 04 Jan 2022 03:14:26 +0100

Use Zipkin -- link tracking in the project

Use Zipkin -- link tracking in the project Introduction to zipkin Basic concepts of zipkin Operation diagram The left part represents the client, which are: The service end of Zipkin is represented in the wireframe on the right, and the functions of each component are as follows: Using Zipkin in a project Zipkin server side 1. Import de ...

Posted by socratesone on Mon, 03 Jan 2022 17:16:33 +0100

Ribbon principle analysis

1, Introduction Ribbon is a component for load balancing on the client side. It is used for load balancing between services in spring cloud microservices. The default is polling algorithm. You can configure other algorithms and customize load balancing algorithms. Client load balancing: a request has declared which service to call at the client ...

Posted by kitcorsa on Mon, 03 Jan 2022 11:17:54 +0100

Startup principle of SpringBoot

To start a SpringBoot project, we only need to execute Java - jar XXX The jar command is OK. At this time, we start a web server container, which can access the corresponding interface through the interface address on the browser, but the whole startup process is transparent to us, so it is necessary to understand. Start front java -jar comma ...

Posted by Shibby on Mon, 03 Jan 2022 07:52:05 +0100

Spring Cloud service call

Spring Cloud Feign Add spring cloud starter feign dependency  <!-- add to Spring Cloud Feign rely on -->        <dependency>            <groupId>org.springframework.cloud</groupId>            <artifactId>spring-cloud-starter-feign</artifactId>        </dependency> Claim Feign client package co ...

Posted by nielskg on Mon, 03 Jan 2022 07:09:32 +0100