[spring cloud] spring cloud is the correct way to deal with all registry clusters after they are down

Correct handling method after registry downtime Microservice is a major trend at present. The registry is not only the most basic component of microservice, but also the most core component. It provides the client with a list of all callable services. Because of this, the availability of the registry is highly required in the microservice ...

Added by nileshkulkarni on Tue, 23 Nov 2021 03:35:31 +0200

Ribbon's final practice -- creating a custom consistent hash load balancing strategy

Custom IRule In this paper, we implement a custom load balancing strategy - consistent hash through IRule interface. The principle of consistent hash is not the focus of this paper. If you don't understand it, you can read this article Principle and implementation of consistent hash algorithm , it's very good. Consistent hash is widely used no ...

Added by titangf on Fri, 19 Nov 2021 19:07:13 +0200

SpringClould microservice Architecture Construction -- unified response, input parameter verification and exception handling

preface For an interface provided by the back end, it is essential to have a unified response format to facilitate parameter verification and unified exception handling. Today, we integrate these three basic functions into the project to make the project closer to the actual development scenario. Unified response In project development, gene ...

Added by eves on Thu, 18 Nov 2021 04:23:17 +0200

Running microservices on Docker

Running microservices on Docker Using Dockerfile to build Docker image Dockerfile builds Docker images. Dockerfile is a text file that contains several instructions that describe the details of building an image. 1) Prepare a file named Dockerfile: FORM nginx RUN echo '<h1>test</h1>' > /usr/share/nginx/html/index.html FORM a ...

Added by cheikhbouchihda on Thu, 11 Nov 2021 06:53:19 +0200

FeignClient file upload and download of spring cloud

Use feignClient to upload and download files, and compatible with data transmission The communication between microservices can use feign interface to communicate and transfer data content, but if there is file transfer between services, it will be very clumsy to use httpClient to transfer.feign interface actually transmits data through http r ...

Added by suomynonA on Tue, 09 Nov 2021 12:28:41 +0200

Build JVM micro service monitoring based on docker (Prometheus+Grafana)

1, JVM monitoring Installing node based on docker_ exporter+prometheus+grafana Download Image package: docker pull prom/node_exporter docker pull prom/prometheus docker pull grafana/grafana docker pull timonwong/prometheus-webhook-dingtalk 1. Start node exporter docker run -d --name node_exporter -p 9100:9100 \ -v "/proc:/host/proc:ro ...

Added by bodzan on Tue, 02 Nov 2021 09:27:38 +0200

One hour online, develop a SMS micro service with flash

preface Flash is a lightweight Web framework developed by Python. How lightweight is it? A Web service can be developed within 10 lines, but it can only be used for demonstration. Today, I will spend one hour to develop a SMS micro service for production environment. The following service code is directly available in the production environmen ...

Added by Assorro on Sun, 31 Oct 2021 08:03:30 +0200

Microservice - current limiting fuse

Sentinel preliminary preparation Download address: https://github.com/alibaba/Sentinel/releases Note: to download Jar package In the jar directory of sentinel, cmd executes the following command: java -Dserver.port=8180 -Dcsp.sentinel.dashboard.server=localhost:8180 -Dproject.name=sentinel-dashboard -jar sentinel-dashboard-1.8.1.jar ...

Added by idealbrain on Fri, 29 Oct 2021 14:37:44 +0300

Microservices - nacos

nacos preparation 1. Configure java environment variables 2. Download and install nacos Download URL https://github.com/alibaba/nacos/releases Select the corresponding version 3. Decompress nacos be careful: The path should not have Chinese and spacesMake sure your MySQL version is above 5.7 (MariaDB above 10.5) 4. Add the foll ...

Added by rachwilbraham on Thu, 28 Oct 2021 17:53:30 +0300

Dubbo 3 in-depth analysis - know you through the source code | HD network disk

Link: https://pan.baidu.com/s/1d6YONkCi4u7T1ZBm1yZLYg Extraction code: iamh Author - \ / 307570512 Introduction to Dubbo 3 Apache Dubbo is a high-performance, lightweight open source service framework. Apache Dubbo 3.0.0 was officially released - fully embracing cloud native Since Apache Dubbo opened its source in 2011, it has accumulated ...

Added by Salis on Thu, 21 Oct 2021 07:21:25 +0300