Application of basic components in microservice Engineering
1, Gateway service
1. Gateway mode
As the outermost service of the architecture, the gateway is used to uniformly intercept requests from various ports, identify the legitimacy of requests, intercept abnormal actions, provide routing and load capacity, and protect business services; This strategy is similar to the appearance mode.
The logi ...
Posted by rachwilbraham on Tue, 08 Mar 2022 01:57:52 +0100
How to local joint commissioning test environment for FM project
backgroundAt present, the company still has many front-end and back-end projects (hereinafter referred to as FM projects). The development students can only jointly debug the alpha environment locally. However, after the project is transferred to the test and performance, the jira orders proposed by the test students are all hwbeta and gamma en ...
Posted by matifibrahim on Tue, 11 Jan 2022 13:05:46 +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
Build the initial environment of spring cloud project - service registry Nacos
Service registry Nacos
1, Introduction to Nacos registry
1. Background analysis
In microservices, the first problem we need to face is how to find services (software is a service), and the second is how to communicate between different services? How to manage each service in the application better and more conveniently, and how to establish ...
Posted by texmansru47 on Tue, 21 Dec 2021 09:12:47 +0100
Troubleshooting of Apache HttpClient connection pool leakage
Troubleshooting of Apache HttpClient connection pool leakage
Problem background
The main business of the business system is a data aggregation management platform, in which one function of the system is to synchronize all resources (large synchronization for short) The service synchronization data request data tool is Feign adapted to Apach ...
Posted by bala_god on Thu, 16 Dec 2021 05:11:44 +0100
OpenFeign -- declarative call to remote method -- spring cloud
6.OpenFeign service interface call
6.1. General
6.1.1. What is openfeign
Feign is a declarative web service client, which makes it very easy to write a web service client. You just need to create an interface and add annotations on the interface Spring cloud encapsulates feign to support spring MVC standard annotations and HttpMessageConver ...
Posted by dhaselho on Tue, 30 Nov 2021 12:33:43 +0100
[Feign source code] the class of parsing method -- Contract
This article describes how to map data in a method to request data, such as which are request parameters, which are request bodies, and which are request headers...
Interface
The function of this interface is to parse the methods in the class. Each method resolves to MethodMetadata.
public interface Contract {
/**
* Contract Provides i ...
Posted by Swede78 on Fri, 10 Sep 2021 12:10:24 +0200