Explanation of distributed transaction - Seata distributed transaction framework (AT and TCC modes)
Seata distributed transaction framework is widely used in the company, including four distributed transaction modes: AT, TCC, SAGA and XA. In fact, like TX-LCN framework, it can be said to be a variant of 2PC distributed transaction model, and its working principle is also similar. It is worth mentioning that the AT mode of Seata framework c ...
Posted by Hiro on Mon, 24 Jan 2022 07:07:47 +0100
Microservice architecture * 2.5 source code analysis of Nacos long polling timing mechanism
preface
reference material: <Spring Microservices in Action> Principles and practice of Spring Cloud Alibaba microservice "Spring cloud framework development tutorial in Silicon Valley of station B" Zhou Yang
In order to facilitate understanding and expression, the Nacos console and the Nacos registry are called the Naco ...
Posted by whit3fir3 on Mon, 24 Jan 2022 05:10:54 +0100
Kafka Topic and Partition description
1: Topic
Topic is the logical division of kafka messages, which can be understood as the name of a category;
kafka classifies messages through topics, and different topics will be consumed by consumers subscribing to the topic.
When there are so many messages in this topic that it takes a few T to save, because the messages will be saved to ...
Posted by thefarhan on Mon, 24 Jan 2022 03:07:10 +0100
Grain mall advanced level chapter
Grain mall advanced level chapter
Content directory:
1, ElasticSearch
1.1 introduction to elasticserch:
Full text search is the most common requirement. Open source Elasticsearch is the first choice of full-text search engines. It can quickly store, search and analyze massive data. Wikipedia, Stack Overflow and Github all use it. The bo ...
Posted by remnant on Mon, 24 Jan 2022 00:49:49 +0100
SpringCloudAlibaba Sentinel (flow control rules)
SpringCloudAlibaba Sentinel (flow control rules)
What is Sentinel
A lightweight cloud native microservice oriented traffic control component. Sentinel is mainly divided into two parts
Core library: Java client, which does not depend on any framework, can run all Java runtime environments, as well as Dubbo / spring cloud and other framewor ...
Posted by Paul1893 on Sun, 23 Jan 2022 22:54:32 +0100
Implementation of snowflake algorithm in singleton mode
Snowflake algorithm
The snowflake algorithm is suitable for generating globally unique numbers, such as database primary key id, order number, etc
As for why it is called snowflake algorithm, it is because scientists believe that there are no two identical snowflakes in nature through research. Therefore, this algorithm is named ...
Posted by Popgun on Sun, 23 Jan 2022 14:02:09 +0100
rabbitmq working mode and python demo
1. Basic concepts
AMQP protocol: Advanced message queuing protocol, a network protocol for asynchronous message transmission between processes. rabbitmq is developed based on AMQP protocol
General workflow: Publisher - > exchange - > queue - > consumer
Broker: agent, consisting of Exchange and Queue The process of connecting produce ...
Posted by tpstudent on Sun, 23 Jan 2022 03:56:17 +0100
seata distributed transaction of spring cloud Alibaba
seata distributed transaction of spring cloud Alibaba
The construction of seata distributed transactions is scattered on the Internet, and there are always problems. Today, a chapter on building cases is published. This chapter is based on springcloud + Nacos + seate1 2 + MySQL build
1. First download seate1 Version 2 code and seate serve ...
Posted by trassalg on Sun, 23 Jan 2022 00:51:52 +0100
Explanation of distributed transaction - TX-LNC distributed transaction framework (including LCN, TCC and TXC modes)
The TX-LCN framework explained today integrates three transaction modes: LCN, TCC and TXC. TX-LCN is an open source framework developed in China. You can see Chinese comments in the source code, which is more friendly. Let's talk about these three modes in detail, with code implementation.
TX-LCN framework principle
The framework is mainl ...
Posted by Bee on Sat, 22 Jan 2022 10:48:16 +0100
Spring Cloud H load balancing Ribbon
preface
Spring Cloud Ribbon is a set of client-side load balancing tools based on Netflix Ribbon.
In short, ribbon is an open source project released by Netflix. Its main function is to provide software load balancing algorithms and service calls on the client. Ribbon client component provides a series of perfect configuration items, such as ...
Posted by Hiro on Fri, 21 Jan 2022 19:47:05 +0100