go microservice - RPC combined with Protobuf
RPC in combination with Protobuf
Here we use a demand scenario to learn relevant knowledge points:
Suppose there is an Order module in a system. Other modules want to realize the remote project call of RPC. The Order information can be obtained according to the Order ID and timestamp. If the acquisition is successful, the correspondin ...
Added by admin on Mon, 28 Feb 2022 03:08:44 +0200
Log management system, summary in various ways
1, Background introduction
Log management in the project is one of the basic functions. Different users and scenarios have specific requirements for logs, so different strategies need to be used for log collection and management. If it is a distributed project, the log system design is more complex.
Log type: business operation, information p ...
Added by fareasd on Mon, 28 Feb 2022 02:50:14 +0200
Leetcode 1601: the maximum number of building change requests that can be reached (diffcult)
catalogue
1. Title Description
2. Problem solving analysis
3. Code implementation
1. Title Description
We have n buildings, numbered from 0 to n - 1. There are several employees in each building. As it is the season to change buildings, some employees want to live in another building. Give you an array of requests, where requests[i] = [ ...
Added by optimiss on Mon, 28 Feb 2022 02:47:04 +0200
It is said that HashMap is thread unsafe. Where is it reflected?
Foreword: we all know that HashMap is thread unsafe and is not recommended to be used in multi-threaded environment, but where is its thread unsafe? This paper will decrypt this problem.
1.jdk1. HashMap in 7
In jdk1 Many optimizations have been made to HashMap in 8. Here, we first analyze it in jdk1 7, I believe you all know in jdk1 7. ...
Added by kovudalion on Mon, 28 Feb 2022 02:41:31 +0200
[true question 3 of blue bridge] the reform of blue bridge becomes difficult. If you want to enter the national competition, you can't lack any of these abilities
โญ Introduction โญ ๏ธ
Hello, I'm Zhijie. There is only one month left for the countdown of the provincial competition of the Blue Bridge Cup. If you have practiced the real problem for nearly seven or eight years, you can obviously feel that the difficulty of the Blue Bridge Cup is becoming more and more difficult. Although it is far from being ...
Added by airdee on Mon, 28 Feb 2022 02:39:12 +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
[war, interviewer] I think the salary of spring recruitment is higher than that of the interviewer. Just read this concurrent HashMap
I'm kangarooking, not my brother's brother. An Internet worm "gua" cow, sincerely share experience and technical dry goods. I hope my article is helpful to you. Pay attention to me and make a little progress every day โ โ โ
preface
This article is applicable to the following groups:
The old fellow who wanted to change jobs rec ...
Added by plisken on Mon, 28 Feb 2022 02:19:54 +0200
7 - Design Mode - builder mode
1, What is the builder model
Builder Pattern, also known as Builder Pattern, is an object construction pattern. It can abstract the construction process of complex objects (abstract categories), so that different implementation methods of this abstract process can construct objects with different representations (attributes).
Builder mode is ...
Added by new@php on Mon, 28 Feb 2022 00:05:13 +0200
Glide's caching mechanism
Glide's cache is divided into two modules, one is memory cache and the other is hard disk cache.
The function of memory cache is to prevent duplicate data from being read;
The function of hard disk cache is to prevent applications from repeatedly downloading and reading data from the network or other places.
Cache Key of Glide
The code that ...
Added by davidprogramer on Sun, 27 Feb 2022 23:38:07 +0200
Software Test-Linux Build Test Environment
1. Database
yum -y install mysql mysql-server mysql-devel
MySQL (client), MySQL-server (server), mysql-devel (library)
Start MySQL:service mysql start
Confirm installation success: mysql-u root-p
View the database: show databases;
Use the database: use mysql;
Query from the user table for all users that can log in and the host that suppo ...
Added by raguskra on Sun, 27 Feb 2022 20:53:30 +0200