Several ways of realizing RPC by golang
What is RPC
Remote Procedure Call (RPC) is a computer communication protocol. The protocol allows a program running on one computer to call a subroutine of another computer without extra programming for this interaction. If the software involved adopts object-oriented programming, Remote Procedure Call can also be called remote call or remote m ...
Added by bloodl on Thu, 17 Feb 2022 06:02:25 +0200
Interviewer: 10 million data, how to query quickly?
preface
Interviewer: let's say, how do you query 10 million data?Brother B: direct paging query, using limit paging.Interviewer: have you practiced it?Brother B: there must beHere's a song "cool"Maybe some people have never met a table with tens of millions of data, and they don't know what will happen when querying tens of millions o ...
Added by jd57 on Thu, 17 Feb 2022 05:52:19 +0200
Key point detection project code is open source!
Datawhale dry Author: Yan Yongqiang, algorithm engineer, Datawhale memberIn this paper, through the self built gesture data set, we use YOLOv5s detection, then train squeezenet to predict the key points of the hand through the open source data set, and finally judge the specific gesture through the angle algorithm between the fingers and displ ...
Added by sloshire1 on Thu, 17 Feb 2022 05:44:21 +0200
In depth analysis of the source code of cloud + Spring + Rocket + spring
1, Introduction to RocketMQ architecture
1.1 logical deployment diagram
(pictures from the Internet)
1.2 description of core components
As can be seen from the above figure, RocketMQ's core components mainly include four, namely NameServer, Broker, Producer and Consumer. Let's briefly explain these four core components in turn:
NameServe ...
Added by phpBuddy on Thu, 17 Feb 2022 05:28:36 +0200
Lora1278 drive v4 4.2 explanation 2: drive multiple SX1278 chips
Recently, there is a project to make a micro gateway, which has requirements for size, volume, power consumption, cost and development cycle. The scheme is based on the previous Lora gateway for rapid research and development. The only difficulty is to drive multiple SX1278 with one MCU. By comparing sx12xxdrivers-v2 of SX1278 1.0 and sx12xxdri ...
Added by twm on Thu, 17 Feb 2022 05:27:36 +0200
Scala grammar tutorial
Chapter 1 Introduction to Scala
1.1 general
Scala is a static type programming language that takes Java virtual machine (JVM) as the running environment and combines the best features of object-oriented and functional programming (static languages need to be compiled in advance, such as Java, c, c + +, dynamic languages such as js).
1) Scala ...
Added by Iconoclast on Thu, 17 Feb 2022 05:15:33 +0200
AbstractQueuedSynchronizer (AQS) source code detailed analysis - CountDownLatch source code analysis
AbstractQueuedSynchronizer (AQS) source code detailed analysis - CountDownLatch source code analysis
1. CountDownLatch introduction
CountDownLatch is a simple synchronizer. It means that one or more threads are allowed to wait for the operation of other threads to complete before performing subsequent operations.
Common usage of CountDownLat ...
Added by tulleh on Thu, 17 Feb 2022 05:10:11 +0200
Data structure --- hash structure implemented by c language array
hash address
The hash address is a logical address, not an actual address. The hash address is obtained through the hash function
hash function
The hash function is determined by yourself. You can choose any function. Suppose you use the array to store the hash data, use the subscript to describe the position in the array, and cons ...
Added by morphy on Thu, 17 Feb 2022 05:01:42 +0200
2021-10-13-linux Foundation
See what types of shell interpreters are available on this machine:
[root@sanchuang huahsan]# cat /etc/shells
/bin/sh
/bin/bash
/usr/bin/sh
/usr/bin/bash
/usr/bin/tmux
/bin/tmux
sh It's a very old interpreter, more than bash Have a sense of history, No bash Easy to use
[root@sc ~]# sh switch to sh interpreter
sh-4.4# Switch bash to bash inte ...
Added by mrfruits on Thu, 17 Feb 2022 05:00:39 +0200
2021-10-12-linux Foundation
linux command: it is essentially a program. Many programs are written in c language, such as python, java, c + +, ruby, php, go, etc
[root@localhost ~]# Cat / etc / CentOS release to check the version of linux
CentOS Linux release 7.6.1810 (Core)
[root@localhost ~]#
cali@cali:~$ cat /etc/issue stay Ubuntu Check the version of the system ...
Added by zalath on Thu, 17 Feb 2022 04:57:46 +0200