• Seata distributed transaction failure notification


    1、 Background In our useSeataAs a distributed transaction, sometimes our distributed transaction can not succeed every time, and we need to notify these failed distributed transactions. This article briefly records how to implement notification. 2、 Function realization The email notification is simulated here, but the email is not really sent, but a log is simply […]

  • MySQL source code reading: implementation of consistent reading


    InnoDB is a storage engine that supports mvcc (i.e. multi version concurrency control), and the consistent read function is based on mvcc. Based on the source code of MySQL 5.7, this paper discusses the principle of consistent reading, including snapshot creation, judging whether it is visible, snapshot closing, etc. premise This paper is based on […]

  • Learning notes of high performance mysql (I)


    Learning notes of high performance mysql (I) preface In fact, there are not many books with good quality of MySQL, so it can be said that one book is less. This book is also a necessary book for learning mysql. Of course, it is very thick. Although the version is very old, the content will […]

  • Blog recommendation | in depth analysis of transactions in Apache pulsar


    About Apache pulsar Apache pulsar is the top-level project of Apache Software Foundation. It is the next-generation cloud native distributed message flow platform. It integrates message, storage and lightweight functional computing. It adopts the design of separation of computing and storage architecture, supports multi tenant, persistent storage and multi machine room cross regional data replication, […]

  • Recommend an ORM framework called hasordb, which is currently version 4.3.0


    introduce Hasordb is a full-featured database access tool, which provides object mapping, rich type processing, dynamic SQL, stored procedures, built-in paging dialect 20 +It supports nested transactions, multiple data sources, conditional constructors, insert policies, and multiple statements / results. And compatible with spring and mybatis usage.It does not rely on any other framework, so it […]

  • Daily friction


    Station B interview Java Foundation What is the difference between ArrayList and LinkedList? ArrayList is based on dynamic array and linedlist is based on linked list structure For random access, ArrayList takes precedence over linkedit, and LinkedList needs to move the pointer For inserting and deleting data, LinkedList only needs to change the pointer references […]

  • Detailed explanation of database mvcc


    Original text:The most complete detailed explanation of database mvcc in the whole network. I’m responsible for the incomplete – MySQL tutorial – PHP Chinese network What is mvcc The full name is multi version concurrency control, that is, multi version concurrency control, which is mainly to improve the concurrency performance of the database. The following […]

  • N common mistakes when using @ transactional


    @TransactionalIt is an annotation that we can hardly escape when using spring. This annotation is mainly used to declare transactions. Its implementation principle is to weave the implementation statements of transaction management before and after the annotation modification method through spring AOP, so developers only need one annotation to replace a series of cumbersome coding […]

  • In spring transaction management, if an exception is handled with try catch, will the transaction be rolled back?


    We know that in normal development, if the developer handles the exception with try catch in the transaction method, spring AOP will not catch the exception information, which will lead to spring’s failure to correctly manage the transaction method and roll back the error information in time. The following code is used to demonstrate: @Override […]

  • Understanding and learning of MySQL transactions. The principle of indexing is the principle of transactions


    catalogue Transaction understanding Transaction composition Transaction characteristics Control statements for common transactions Acid characteristics of the transaction Atomicity (can be understood by multithreading to write global data) binding operation unit Isolation Persistence (write log first and then disk, efficient) Consistency (a state in which data integrity is not destroyed, whether rollback or commit) Concurrency exception […]

  • Can distributed locks be so simple? (Continued)


    This is the last articleCan distributed locks be so simple?The sequel is mainly to record and analyze the difficulties encountered in the packaging process and the corresponding solutions. Note: reading this article requires some knowledgeAspect oriented programmingThe foundation of. Source code preparation To expose the problem, you need to annotate some of the code first. […]

  • The golden finger of tens of millions of e-commerce transactions: distributed transaction management


    Summary:Since ancient times, our trading and consumption process has undergone earth shaking changes. Today, let’s decrypt the story behind those purchases that have lasted for thousands of years. This article is shared from Huawei cloud community《Uncover the things behind the tens of millions of transactions》Original author: Huawei cloud header. When the general mobilization of shangyun […]