Spring cloud builds gateway through Zuul

In micro services, a unified gateway is usually added to all services. The gateway mainly performs routing forwarding and transverse section functions (such as authentication, log collection, current limiting and counting). Step 1: As a maven project, add the specified package in pom.xml <dependenci ...

Posted by aquarius on Wed, 02 Oct 2019 04:29:37 -0700

Using supervisor in Centos7

Top:pip install supervisor is recommended to install the latest version of supervisor. The highest version of yum install supervisor is 3.1.4. There are many bug s. Name explanation supervisor: The name of the software to be installed.Supervisord: After installing the supervisor software, supervisord is used to start the supervisor service.supe ...

Posted by R1der on Mon, 30 Sep 2019 20:47:29 -0700

The use of websocket in spring boot + Vue

1. An Implementation of websocket in springboot In the java background, websocket is configured as a server-side configuration, which is as follows @Configuration public class WebSocketConfig {    @Bean(name="serverEndpointExporter") public ServerEndpointExporter getServerEndpointExporterBean(){ return new ServerEndpo ...

Posted by The Wise One on Mon, 30 Sep 2019 16:40:52 -0700

Java Server Establishes Long Links as Web Socket Client

In recent projects, web socket communication between Java server and c++ is needed. The plug-in of java_websocket.client.WebSocketClient solves this requirement well. First, you need to introduce this dependency in the pom.xml file: <dependency> <groupId>org.java-websocket</group ...

Posted by turpentyne on Mon, 30 Sep 2019 09:04:38 -0700

The evolution of reuseport in the Linux kernel

The SO_REUSEPORT option was introduced into the kernel on Linux 3.9, before which there was a similar option, SO_REUSEADDR.If you are not sure about the differences and connections between the two, it is recommended that you read How do SO_REUSEADDR and SO_REUSEPORT differ?. If you don't want to read it, the next section is for lazy people. Wha ...

Posted by Jabop on Sat, 28 Sep 2019 02:08:36 -0700

Java Network Programming--Chain of Responsibility in Netty

Chain of Responsibility in Netty Design Patterns-Responsibility Chain Patterns Chain of Responsibility Pattern is a behavioral design pattern that creates a chain of processing objects for requests. Each node in the chain is regarded as an object. Each node handles different requests and maintains an object of the next node automatically. W ...

Posted by coldwerturkey on Thu, 26 Sep 2019 06:54:01 -0700

Programmer: Concurrent how to keep shared variables secure and unlocked?!

This blog Uncle Cat's Blog , reprint please state sourceRead this for about "15 minutes" Readable Population: Java Intermediate Learn notes, take a two-day break (actually doing a simulation project in real life), occasionally think about what you should do on earth, is it really meaningful to yourself or society? Photo on Visual hun ...

Posted by dvayne on Wed, 25 Sep 2019 19:16:00 -0700

Netty Source Code Analysis--IdleStateHandler Source Code Analysis of Heart Rate Service

What is the heartbeat mechanism? Heartbeat is about how to keep the connection alive by sending a simplest package when the client and server establish ESTABLISH status with each other, and how to monitor the availability of services on the other side. The Role of Heart Packet Keep aliveQ: Why does heartbeat keep connections alive? It is ...

Posted by Galia on Wed, 25 Sep 2019 01:10:34 -0700

Retry Controller Settings in httpclient Interface Test

In the process of using httpclient for interface testing, I did not take into account the failure of request auto-retry before, but sometimes I need to retry when some errors occur, such as timeout, frequent rejection of response, etc. After reading the official examples, I wrote a controller for auto-retry.Share the code for your reference. He ...

Posted by shopphp on Mon, 23 Sep 2019 19:50:16 -0700

Seven Ways of Writing Singleton Patterns

Article transferred from public account Invincible Baron | If anyone asks you about your singleton pattern again, throw him these seven ways of writing! The singleton design pattern is one of the most basic and commonly used design patterns among the 23 design patterns. It is also one of the high freq ...

Posted by Begbie on Mon, 23 Sep 2019 03:35:02 -0700