Realize the read-write separation of mysql database through shardingsphere

In the previous document, mysql master-slave databases were deployed through docker: Deploy mysql master-slave architecture in docker mode_ Repair Baron's blog - CSDN blog This paper introduces how to connect and use mysql master-slave database in java code to realize the separation of reading and writing. mybatis-plusPersistence layer frame ...

Added by Muddy_Funster on Thu, 10 Mar 2022 07:31:02 +0200

Message oriented middleware ActiveMQ

ActiveMQ Introduction to ActiveMQ ActiveMQ is the most popular and powerful open source message bus produced by Apache. ActiveMQ is a Fully support JMS1 1 and J2EE 1.4 specifications, although the JMS specification has been issued for a long time But JMS still plays a special role in today's J2EE applications. What is news A message is a un ...

Added by jonwondering on Tue, 08 Mar 2022 18:49:03 +0200

[C#/.NET] dynamically build middleware pipeline on console

As shown in the figure above: we will deform step by step in the following article to realize such a function. 1, Fool execution demonstration First, create a console project and create three functions: Begin() FirstMiddleware() SecondMiddleware() End() 1        /// <summary> 2        ///Before starting execution 3        /// &lt ...

Added by CherryT on Tue, 08 Mar 2022 14:05:55 +0200

Redis realizes inventory deduction of e-commerce system

In daily development, there are many similar operations of reducing inventory, such as commodity inventory in e-commerce system, prize inventory in lottery system, etc. Solution Using mysql database, use a field to store inventory, and update this field every time you deduct inventory. The database is still used, but the inventory is layere ...

Added by TheOracle on Mon, 07 Mar 2022 20:54:01 +0200

Optional air judgment operation manual

We programmers do a lot of null value checking. Although sometimes this kind of inspection is completely unnecessary, we are used to routine. Finally, Java 8 couldn't stand it anymore, so we introduced Optional so that the code we wrote was no longer so mean and inflexible. Pull the name of a member from the database according to the member ID, ...

Added by akshay on Sat, 05 Mar 2022 14:56:12 +0200

Analysis of RabbitMQ learning notes and AMQP protocol

RabbitMQ Related concepts of MQ What is MQ MQ(message queue), in its literal sense, is essentially a queue. FIFO is first in first out, but the content stored in the queue is message. It is also a cross process communication mechanism for upstream and downstream message delivery. In the Internet architecture, MQ is a very common upstream ...

Added by seanlyons on Fri, 04 Mar 2022 02:47:24 +0200

[RabbitMQ series that laymen can understand] - advanced part of RabbitMQ: implementing delay queue through plug-in (including implementation code and rabbitmq_delayed_message_exchange installation)

preface Congratulations to all the friends who read this article for successfully unlocking the advanced feature plug-in version of RabbitMQ series Content of delay queue 🎁 Through this article, you will clearly understand: what is delay queue? Delay queue usage scenario? How to install the BBU # exchange # Q plug-in? 😄 At the end ...

Added by larsojl on Wed, 02 Mar 2022 02:50:54 +0200

[Yugong series] March 2022 ASP Net core Middleware - current limiting

1, Current limiting algorithm In high concurrency systems, there are three sharp tools to protect the system: caching, degradation and current limiting. This paper mainly introduces current limiting. There are three current limiting algorithms: 1. Counter algorithm Fixed windowsliding window 2. Token bucket algorithm3. Leaky bucket ...

Added by ranjuvs on Tue, 01 Mar 2022 03:50:04 +0200

[RabbitMQ series that laymen can understand] - dead letter queue of RabbitMQ advanced (including video demonstration service and service code)

preface Congratulations to all the friends who read this article for successfully unlocking the advanced features of RabbitMQ series Contents of dead letter queue 🎁 Through this article, you will clearly understand: what is dead letter? What is a dead letter queue? How to use the dead letter queue? etc. 😄 Finally, Xiaoming will he ...

Added by billcoker on Mon, 28 Feb 2022 02:39:48 +0200

RabbitMQ installation and introduction

RabbitMQ What is MQ MQ(message queue), in its literal sense, is essentially a queue. FIFO is first in first out, but the content stored in the queue is message. It is also a cross process communication mechanism for upstream and downstream message delivery. In the Internet architecture, MQ is a very common upstream and downstream "logica ...

Added by georgen on Sat, 26 Feb 2022 17:43:42 +0200