Java Concurrent learning: source code analysis of non blocking concurrent queue based on CAS

Today, let's talk about concurrent linkedqueue The ConcurrentLinkedQueue we are going to learn today does not implement the BlockingQueue interface. It is a thread safe and unbounded non blocking queue that completely uses CAS operations. Structural composition public class ConcurrentLinkedQueue<E> extends AbstractQueue<E> ...

Posted on Mon, 06 Dec 2021 16:48:18 -0500 by Stelios

Software design - Preliminary Thinking on modular design I

Software design - Preliminary Thinking on modular design I Modular design Note: modular design, in short, means that the programming does not start by inputting computer statements and instructions one by one, but first describes the main structure and process of the software with the framework of main program, subroutine and subprocess, And ...

Posted on Sun, 05 Dec 2021 17:58:17 -0500 by Volte

Spring Boot integrates RabbitMQ

Application scenario 1. Asynchronous processing Scenario: after registration, users need to send e-mails and text messages after successful registration. There are two traditional methods: Serial mode: after the registration information is written into the database, send the email of successful registration. After the email is sent successf ...

Posted on Sun, 05 Dec 2021 07:30:05 -0500 by phpknight

I realized that this is the correct way to open distributed transactions

1, Concept of distributed transaction 1. What is a transaction A transaction can be regarded as a big activity. It consists of different small activities. These activities either succeed or fail. 2. Local affairs Four characteristics of database transactions ACID: A(Atomic):   Atomicity  , All operations constituting a transact ...

Posted on Fri, 03 Dec 2021 19:07:35 -0500 by bache

Based on SSM (worker management system), add, delete, modify, query, file upload, multi condition search and paging are realized

1, The worker management system contains functions 1. Develop a worker management system using SSM framework, including the following functional requirements: Realize the addition, deletion, modification and paging list of workersThe ID card of the worker shall be unique, and the uniqueness shall be verified before savingThe ID card of the wo ...

Posted on Fri, 03 Dec 2021 03:18:16 -0500 by wad

Blog recommends | using Pulsar IO to build streaming data pipeline

This article is translated from the streamnational blog. Original author of the blog: Ioannis Polyzos, StreamNative solution engineer. Original link: https://streamnative.io/blog/...backgroundBuilding a modern data infrastructure has always been a difficult problem for today's enterprises. Today's enterprises need to manage large amounts of het ...

Posted on Wed, 01 Dec 2021 06:40:48 -0500 by Sven70

Teach you to play maven scaffold hand in hand

Generate scaffolding With the continuous stability of the new framework (which also brings good benefits), new projects and reconstruction projects continue to cut to the new framework. For this reason, the new framework should be a scaffold. The demo is included in the scaffold (the framework is for learning, and there will be some convenien ...

Posted on Sun, 28 Nov 2021 21:23:06 -0500 by erth

What is IOC? Teach you to roll an IOC container

IoC What is IoC? IoC is the abbreviation of inversion of control. Note that it is a technical idea. It describes the creation and management of objects. Traditional development methods: for example, if class a depends on class B, it often creates a new object of class B in class A.IoC development method: we don't need to go to the new object ...

Posted on Sun, 28 Nov 2021 20:34:09 -0500 by ztealmax

Architect Essentials: Smart use of Canal for asynchronous, decoupled architecture

This paper describes how to use Canal to implement an asynchronous and decoupled architecture. Subsequent articles will be rewritten to analyze Canal principles and source code. Introduction to Canal Canal is the middleware used to get database changes. Fake yourself as a MySQL slave library, pull the master binlog and parse and process it. P ...

Posted on Fri, 26 Nov 2021 16:46:43 -0500 by badboy1245

Null Object Pattern

This article is excerpted from "design patterns should be learned this way"1 definition of empty object modeNull Object Pattern does not belong to GoF design pattern, but as a frequent pattern, it is enough to be regarded as design pattern. Its specific definition is to design an empty object to replace the check of NULL object instan ...

Posted on Fri, 26 Nov 2021 08:51:02 -0500 by menwn