Seta introduction to distributed transaction DEMO

>Simple Extensible Autonomous Transacation Architecture, seata is a simple, scalable and highly autonomous distributed architecture SEATA Server Configure >Because we use the official version 1.0.0-GA, most of the instructions found on the Internet are version 0.X, with many changes. For example, the script of db_store.sql is cancelled in ...

Posted by Begby on Wed, 15 Jan 2020 13:57:55 +0100

Thread asynchronous processing - state synchronization

Share a single thread for state processing without MQ at work Recently, a third-party interface for contract signing is needed. Because the processing response of this interface is slow and the request times out every time, a compensation interface, that is, the state synchronization interface, is nee ...

Posted by bogha on Wed, 15 Jan 2020 06:59:32 +0100

Overview of Java Collections

An overview of Java collections (above) Preface First of all, why do I write such a blog (I always like to write why).Because by the end of the year recently, I was preparing for an interview, so I was making a technical summary of all aspects.Java collections are a very important part of Java, and they have spent a lot of time learning before ...

Posted by Graxeon on Fri, 10 Jan 2020 02:40:18 +0100

C foundation takes you to write redis ae event driven model

Introduction - overall understanding The event driven model of redis ae has a lot of chatting on the Internet. However, after you carefully read one article after another, it may be very comfortable for you to read, but for Why does the author write like this, starting point, advantages, disadvantages... Maybe it's still vague, isn't it? We ...

Posted by jarvishr on Wed, 08 Jan 2020 16:43:53 +0100

Using macros in the source code of Apollo xlua

This article explains how to use macros in two modes. First, there are two modes under Apollo Lua, one is web mode and the other is tool mode. In the web mode, we can use it on the browser side, but there are some limitations. For example, some native APIs cannot be used, such as ngx, redis and mysql. For example, please see web console exampl ...

Posted by FlipinMonkeyPie on Tue, 07 Jan 2020 07:45:08 +0100

Install Redis Cluster from scratch (Linux CenOS7)

Install CentOS7 Virtual Machine using ISO Configure static IP (Reference Mac VMware Fusion CentOS7 Configuration Static IP) Install vim [root@localhost java]# rpm -qa|grep vim vim-minimal-7.4.629-6.el7.x86_64 [root@localhost java]# yum -y install vim* ... Install jdk Upload jdk to / home/software on Linux using FileZilla [root@localho ...

Posted by msnhockey on Mon, 06 Jan 2020 07:37:05 +0100

Detailed pod Scheduling for k8s

Usually, the default k8s scheduling method is used, but in some cases, we need to run the pod on the node with the characteristic label to run them all. At this time, the pod's scheduling policy can not use the default k8s scheduling policy. At this time, we need to specify the scheduling policy, telling k8s that we need to schedule the pod on ...

Posted by Wireless102 on Sun, 05 Jan 2020 22:12:08 +0100

Redis data basic operation

@ overview Some common operations of key value pairs and other data types are listed here; For more operation commands and definitions, please refer to: http://redis.cn/commands.html @String operation example set name bill //set key value setex name 20 bill //Key expires in 20 seconds mset age 60 gender male //Store multi ...

Posted by gotornot on Sat, 04 Jan 2020 04:12:20 +0100

Automatically configuring machine numbers with SnowFlake in a cluster or development environment using Redis

Automatically configuring machine numbers with SnowFlake in a cluster or development environment using RedisPreface:SnowFlake Snowflake ID algorithm is a well-known distributed ID generation algorithm introduced by Telco.With pre-allocated machine IDs, workspace IDs, machine time can generate globally unique Long Type IDs that increase over tim ...

Posted by joel24 on Fri, 03 Jan 2020 06:30:40 +0100

Let's talk about lettuce's sentinel connection

order This paper mainly studies the sentinel connection of lettuce RedisClient.connectSentinel lettuce-core-5.0.4.RELEASE-sources.jar!/io/lettuce/core/RedisClient.java private <K, V> StatefulRedisSentinelConnection<K, V> connectSentinel(RedisCodec<K, V> codec, RedisURI redisURI, Duration timeout) { asse ...

Posted by GreenSmurf on Fri, 03 Jan 2020 03:16:39 +0100