Source code analysis of Spring transaction execution

Spring transactions rely on AOP. The transaction execution process is to add AOP facet logic when the business method is executing. It is intercepted by the TransactionInterceptor class. We use this as the entry point to analyze the whole process. 1, TransactionInterceptor public Object invoke(MethodInvocation invocation) throws Throwable { ...

Posted by passagewds on Tue, 24 Mar 2020 04:06:06 -0700

40 line program integrates the response of Vue3 into React for state management

This article refers to the original- http://bjbsair.com/2020-03-22/tech-info/2095/ Preface Vue next is the source warehouse of vue3. Vue3 uses lerna to divide the package, while the responsive capability @ vue/reactivity is divided into a separate package. If we want to integrate it into React, is it feasible? Let's have a try. Use example If ...

Posted by double on Tue, 24 Mar 2020 01:02:28 -0700

How to integrate Redis cluster in Spring

In the last article, I talked about--- How to build a redis cluster? Let the cluster have the capacity expansion of fragmented data memory and the high availability of sentry . Today, I'll show you how Spring integrates Redis cluster First of all, I'd like to tell you about the characteristics of segmentation and sentry: 1. The main function ...

Posted by Xoom3r on Mon, 23 Mar 2020 23:53:00 -0700

Spring Cloud Micro Service Architecture From Getting Started to Getting Used - Service Gateway Spring Cloud Gateway

In the first two articles, we have preliminarily completed a small micro-service framework, including a service registry, an order service, and an inventory service. Order services can also make inter-service invocations of inventory services through feign.In that article, we will introduce the service gateway Spring Cloud Gateway. Spring Cloud ...

Posted by daddymac on Mon, 23 Mar 2020 10:59:24 -0700

Spring boot admin turbine configuration details

Because hystrix is a single application for monitoring the traffic status. Sometimes we need to view the monitoring status of the whole system comprehensively, so we may need to introduce the monitoring check of turbine. Spring boot admin already has the plug-in spring boot admin server UI turbine turbine is a collection of hystrix. It shows a ...

Posted by LennyG on Mon, 23 Mar 2020 07:57:23 -0700

Source Interpretation of Golang's sync.Map Implementation Principle

brief introduction Gos built-in maps do not support concurrent write operations, because map write operations are not concurrently secure. When you try multiple Goroutine operations on the same map, an error occurs: fatal error: concurrent map writes. So sync.Map has been officially introduced to accommodate concurrent programming applications. ...

Posted by skeener on Sun, 22 Mar 2020 22:56:00 -0700

Spring boot -- loading in the preparation stage of spring application

Learning notes are notes made according to my own needs and understanding after learning the core technology of Spring Boot 2.0 in-depth practice by brother Ma on mooc.com. Preface Spring boot is built based on spring, that is to say, Spring Framework is the basis of learning spring boot well. First of all, the premise of und ...

Posted by NiallThistle on Sun, 22 Mar 2020 09:18:17 -0700

json operation for Golang

JavaScript Object Representation (JSON) is a standard Protocol for sending and receiving structured information.JSON is not the only standard Protocol among similar protocols.XML (7.14), ASN.1, and Google's Proocol Buffers are similar protocols and have their own features, but JSON is the most widely used because of its simplicity, readability ...

Posted by GregArtemides on Sun, 22 Mar 2020 00:00:01 -0700

php uses the ordered set zset of redis to implement delay queue

Delay queue is a message queue with delay function. Compared with ordinary queue, it can consume messages at a specified time. Application scenario of delay queue: 1. New users sign up, and send e-mails or on-site letters in 10 minutes. 2. After the user places an order, the order will be automatically voided if the payment is not made withi ...

Posted by DJP1986 on Sat, 21 Mar 2020 10:15:02 -0700

Starting from the establishment of redis cluster

Recently, the redis cluster deployment has been used. By the way, you can learn a lot about redis. 1. Download redis and support the deployment of redis cluster from 3.0. tar xzvf redis-5.0.5.tar.gz #Download the source code and extract it through tar zxvf wget http://download.redis.io/releases/redis-5.0.5.tar.gz #Compile the source code th ...

Posted by Joel.DNSVault on Sat, 21 Mar 2020 09:18:20 -0700