Spring Cloud Distributed Micro Service Cloud Architecture Part 9: Service Link Tracking (Spring Cloud Sleut)
This article focuses on the service tracking component zipkin, which Spring Cloud Sleuth integrates.
1. Introduction
Add sleuth to the classpath of a Spring Boot application (see belowfor Maven and Gradle examples), and you will see the correlation databeing collected in logs, as long as you are logging requests.
--- From the official website
...
Added by ponies3387 on Wed, 18 Dec 2019 05:21:25 +0200
How to solve the problem of OpenSSL? Pkey? Export(): cannot get key from parameter 1 in windows system
In order to solve this problem, I Baidu many methods, but many methods have no effect.
Method 1:
If you are installing phpstudy, then
1. You need to go to php extension to open the extension.
2. Go to php.ini and remove the ";" before "extension=php_openssl.dll". If not, add extension=php_openssl.dll.
3. Copy libeay32.dll ...
Added by Aretai on Sat, 14 Dec 2019 17:33:49 +0200
mybatis uses for update to lock data at row level
The usage scenario of for update has been introduced in Spring Date JPA for update. For more information, see the blog: https://blog.csdn.net/zc_ad/article/details/83578487 , we will introduce the usage scenario in mybatis here. Mybatis plus is used. Some basic tutorials have been done before. Address: https://blog.csdn.net/zc_ ...
Added by darktimesrpg on Thu, 12 Dec 2019 18:40:18 +0200
Talk about the HAClient of rocketmq
order
This paper mainly studies the HAClient of rocketmq
HAClient
rocketmq-all-4.6.0-source-release/store/src/main/java/org/apache/rocketmq/store/ha/HAService.java
class HAClient extends ServiceThread {
private static final int READ_MAX_BUFFER_SIZE = 1024 * 1024 * 4;
private final AtomicReference<String> masterAddress ...
Added by mjgdunne on Thu, 12 Dec 2019 18:37:02 +0200
WebMagic getting started with crawler
This example implements the capture of the latest movie source name list and the download address of the detail page of a movie website.
webmagic is an open-source Java vertical crawler framework. Its goal is to simplify the development process of crawlers and let developers focus on the development of logical functions.
WebMagic features:
Ful ...
Added by cyh123 on Wed, 11 Dec 2019 01:25:26 +0200
MapReduce practice handwritten WordCount case
Requirement: count the total number of occurrences of each word in a given stack of text files
As shown in the figure below is the analysis chart of MapReduce statistical WordCount:
The map stage reads the data from the file, the line number is the key, and the read value of each line is the value. Each key/value pair is ou ...
Added by jber on Tue, 10 Dec 2019 22:02:08 +0200
Spark obtains a case of a mobile phone number staying under a base station and the location of the current mobile phone
1. Business requirements
Calculate a cell phone number (base station, dwell time), (current longitude, current latitude) by holding the cell phone number's dwell time log and base station information at each base station
The log information generated by connecting the mobile phone to the base station is similar to the following: ...
Added by compguru910 on Tue, 10 Dec 2019 21:16:10 +0200
Spring cloud Finchley.RELEASE version 8 service link tracking Sleuth
Sleuth brief introduction
Microservice architecture divides services by services. Exposed interfaces may require many services to cooperate to complete an interface function. If any service on the link has problems, interface calls will fail. At this time, it is very difficult to find the microservices with problems. The main ...
Added by le007 on Tue, 10 Dec 2019 06:55:47 +0200
Java REST Client accessing Alibaba cloud 5.5 elastic search instance implementation
Development environment: InteliJ IDEA
Operating system: Mac OS Mojave
Elastic search version: Alibaba cloud 5.5.3 with x-pack
Client version: REST Client 5.5.3
1. Create Alibaba cloud ES instance in advance and open the public address access white list.
2. Pre create index and mapping (using Kibana Dev Tools)
PUT index_test
{
"mappings": ...
Added by shanejeffery86 on Mon, 09 Dec 2019 17:39:27 +0200
Scala development environment construction
At the beginning, I used eclipse development tools. After installing Scala, download the Scala Eclipse Plug-in and copy the feature s and plugin s in the compression package to the corresponding directory of eclipse tools. However, using Eclipse Maven to develop Scala projects is a bit of a pain. So, toss to toss to give up and ...
Added by AjithTV on Mon, 09 Dec 2019 03:52:28 +0200