Introduction to microservices reverse proxy, load balancing, Nginx, cache, distributed lock, Redisson, SpringCache

Reverse proxy In fact, an agent is an intermediary. A and B can be connected directly. A C is inserted in the middle, and C is an intermediary. According to the role of agents, they can be divided into forward agents and reverse agents The forward proxy is the client proxy, the proxy client, and the server does not know the client that actuall ...

Posted by nickvd on Tue, 19 Oct 2021 22:05:06 -0700

Elasticsearch: connect elasticsearch from the Spring Boot application

In previous articles“ Elasticsearch: use Spring Boot to create REST APIs to access elasticsearch ”, I described in detail how to use it in Spring Boot applications   Elasticsearch rest high level client library to connect with elasticsearch. In today's article, I'll use another library   spring-boot-starter-data-elasticsea ...

Posted by callisto11 on Tue, 19 Oct 2021 19:23:52 -0700

day2021-10-19(Spring boot core configuration file, project deployment, hot deployment, ES6)

2. Introduction to spring boot 2.1 configuration file 2.1.1 yml and properties spring boot supports 2 configuration files: *. yaml/*.yml, *. propertiesDefault name of configuration file: application YML format: application.ymlproperties: application.properties 1) properties configuration Location:% maven%/src/main/resources/ [the exte ...

Posted by billynastie on Tue, 19 Oct 2021 11:33:15 -0700

Code execution + failure rerun of TestNg of SpringBoot

Code execution + failure rerun of TestNg of SpringBoot My design idea is to directly add the corresponding Controller layer and service layer in SpringBoot, and directly encapsulate the run and failure rerun into interfaces. In fact, the Controller layer to realize the call is only a way and an exit. The important thing is the design of the im ...

Posted by bicho83 on Tue, 19 Oct 2021 00:29:59 -0700

Basic Additions and Deletions Check (CRUD) 01: Paging & Optimistic Lock & Default Insert

Basic Additions and Deletions Check (CRUD) 01: Paging & Optimistic Lock & Default Insert Basic Additions and Deletions Check (CRUD)01 Base Additions and Deletions Check (CRUD)02 Basic Additions and Deletions Check (CRUD)03 Preface Tip 1: Indirect hesitation, persistent mixing and waiting to die!!! Not desirable or not Tip 2: ...

Posted by saadatshah on Sat, 16 Oct 2021 10:10:57 -0700

Zero to one registry and load balancing of spring cloud

Zero to one registry and load balancing of spring cloud Friends who know about distributed services must be familiar with zookeeper. It plays the role of a registration center, and then you can register and subscribe to services through Dubbo. Microservices are a collection of distributed products. They also need a registry to register and ...

Posted by barrywood on Fri, 15 Oct 2021 10:58:38 -0700

Spring DeferredResult asynchronous request

1, Background Recently, during the project, there was a payment scenario. The front end needs to jump to different pages according to the payment results. Our payment notice is sent back by the payer asynchronously, so after sending the payment request If the payment result cannot be obtained immediately, we need to rotate the transaction ...

Posted by gdure on Thu, 14 Oct 2021 20:58:56 -0700

Springboot project startup process

Initialization phase: Step 1: initialize the spring application module and configure some basic environment variables, resources, listeners and constructors; In the second step, the specific application startup scheme is realized, including process monitoring module, loading configuration environment module and creating context environment mo ...

Posted by nay4 on Wed, 13 Oct 2021 22:50:39 -0700

Super detailed explanation of java8 stream API!

First post a few cases. Students with high level can challenge: Select employees with salary greater than 8000 from the employee set and place them in a new set.Count the sum of the maximum salary, average salary and salary of employees.Employees are ranked from high to low in salary, and the younger ones are the first.Classify employees by ...

Posted by northcave on Wed, 13 Oct 2021 17:04:40 -0700

SpringBoot startup process

  Boot class @SpringBootApplication annotation The following three annotations are included SpringBootConfiguration: the boot class, the main Configuration class identified as springboot, has the function of @ Configuration annotation@EnableAutoConfiguration: enables automatic configuration. You can exclude classes that do not need to a ...

Posted by gunslinger008 on Wed, 13 Oct 2021 11:34:41 -0700