Summary of five data types and usage scenarios of Redis!! (including complete actual combat cases, recommended Collection)

This article comprehensively describes the five data types and usage scenarios of Redis, including complete practical cases. It is strongly recommended to collect!! Hello, I'm glacier~~ Recently, there are a lot of small partners who have changed jobs in the interview, and the interview situation feedback to me is very different. However, m ...

Posted on Wed, 13 Oct 2021 19:31:49 -0400 by raj86

java handwritten RPC (07)-timeout timeout from scratch

"Out of date" The longest is waiting We can't wait for one person forever Like a request Always wait for a response timeout handler java handwriting from scratch RPC (01) based on socket implementation java handwritten RPC (02)-netty4 from scratch to implement client and server java handwritten RPC (03) from scratch how to ...

Posted on Wed, 13 Oct 2021 11:09:57 -0400 by joon

Spring Cloud+eureka+feign for microservices and load balancing

In this example, we use eureka and feign to build a simple distributed system based on microservices under the spring boot cloud framework. The service system has only four modules, namely four micro services: Two production modules, ProviderModule and ProviderModule2, simulate service providers, such as order services; One InvokeModule calls ...

Posted on Wed, 13 Oct 2021 09:41:51 -0400 by Aro

Microservice 10: expansion and implementation of single sign on system

Business development description Increase database access First: the login user information comes from the database (user's own information and user's corresponding permission information) Second: write the uploaded file information to the database (do it yourself) Third: write the operation log of login operation and file upload operation to ...

Posted on Wed, 29 Sep 2021 19:50:49 -0400 by MytHunter

Easily complete a distributed transaction TCC, nanny level tutorial with Java

What is TCC? TCC is the abbreviation of Try, Confirm and Cancel. It was first proposed by a paper entitled Life beyond Distributed Transactions:an Apostate's Opinion published by Pat Helland in 2007. TCC composition TCC is divided into three stages Try phase: try to execute, complete all business checks (consistency), and reserve necessary bu ...

Posted on Sat, 25 Sep 2021 21:15:05 -0400 by Sk~

Spring cloud Alibaba Seata solves distributed transactions

Spring cloud Alibaba Seata solves distributed transactions Seata is an open source distributed transaction solution of Alibaba. It is committed to providing high-performance and easy-to-use distributed transaction services. This paper will introduce its usage in detail through a simple single business scenario. What is a distributed transacti ...

Posted on Mon, 20 Sep 2021 02:31:14 -0400 by dotBz

Feign of spring cloud, service communication (declarative REST client)

RestTemplate is used in the previous study of calling between micro services. This chapter will learn Feign to communicate between services FeignClient simplifies the writing of requests and selects which service to use for consumption through dynamic load. All this is realized by Spring dynamic configuration. We don't care about these, just ...

Posted on Sat, 18 Sep 2021 07:02:54 -0400 by scrupul0us