Previous: Consul registration center 01: Spring Cloud microservice architecture practice You can click review. Next, let's talk about the introduction case of consumer.
For the detailed video tutorial of spring cloud actual combat project, please leave a message.
1. Create project
Let's create an aggregation project to explain Consul. First, ...
Posted on Thu, 14 May 2020 08:13:04 -0700 by david212
I don't know when it started, but the original obscure Bloom filter got a big reputation. In the interview, the interviewer asked how to avoid cache penetration. Your first reaction might be the Bloom filter. Cache penetration = Bloom filter became the standard match, but it's not clear what Bloom filter is and how to use it. Let's talk about ...
Posted on Wed, 13 May 2020 09:59:45 -0700 by broann
1. Implement an operation of adding, modifying, deleting and querying data tables in the database by integrating SpringBoot, SpringMVC and MyBatis.
First of all, you're using the Springboot version 2.2.6.RELEASE, and since Springboot iterates quickly, you need to be aware of the version issues.
Add a new dependency package to the pom file as ...
Posted on Mon, 11 May 2020 18:54:35 -0700 by spyke01
Before reading the source code, first of all, ask a few questions
How SLF4J integrates different log frameworks
Why there is only one binding of log frame in Class Path
In your code, in addition to slf4j-api-1.8.0-beta2.jar, you simply drop one and only one binding of your choice on the appropriate cl ...
Posted on Mon, 11 May 2020 02:29:08 -0700 by Jack McSlay
Create a SparkSession
from pyspark.sql import SparkSession
spark = SparkSession.builder.enableHiveSupport().appName('test_app').getOrCreate()
sc = spark.sparkContext
hc = HiveContext(sc)
1. Spark creates partition table
# You can change append to overwrite, so that if the table already exists, the previous table will be deleted and a ...
Posted on Mon, 11 May 2020 01:18:45 -0700 by [xNet]DrDre
There are many small applications and some common features, such as relying on spring-boot, log4j2, lombok, fastjson, etc. For ease of development, you can use Maven to customize a parent to simplify development and unify the management of third-party dependent versions.(Prepare for future microservices!)
2.1. Create a ne ...
Posted on Sun, 10 May 2020 00:16:32 -0700 by corporateboy
Apache Dubbo is a high performance, lightweight, open source Java RPC framework that provides three core capabilities: Interface-oriented remote method calls, smart fault tolerance and load balancing, and automatic service registration and discovery.
Note that it is Apache Dubbo, not Alibaba Dubbo anymore.Simply put, Alibaba handed over Dubbo ...
Posted on Fri, 08 May 2020 12:39:59 -0700 by rashpal
In the previous part, we have roughly combed the authentication and authorization process. In this process, we always use the default page generated by the system. After logging in successfully, we also directly transfer to the root path page. In the actual development process, we need to customize the login page, and sometimes add various aut ...
Posted on Fri, 08 May 2020 11:03:31 -0700 by fabby
An online log collection service alarms and opens the domain name to report the 502 error code. The collection service consists of two netty HA servers. The netty server parses the protobuf logs delivered by the client and sends them to kafka, opens the logs of one of the applications, and finds the following errors:
Posted on Thu, 07 May 2020 00:08:26 -0700 by JonathanS
Confusion of jdk compiled version
Due to the pursuit of version stability and legacy of old projects, we often have to switch the compiled version of JDK at any time, which is a stranger to the latest jdk11. We have been criticized for forgetting to use the idea switch of different versions of JDK for a long time
Several ways to configure jdk w ...
Posted on Wed, 06 May 2020 07:49:02 -0700 by banjax