RocketMQ source code analysis RPC communication

In the first part, the protocol format, message encoding and decoding, communication mode (synchronous / asynchronous / one-way), message sending / receiving and asynchronous callback of RocketMQ are introduced. This paper focuses on the Netty multithreading model of RocketMQ message queuing RPC comm ...

Posted on Sat, 06 Jun 2020 03:33:48 -0700 by carylson

RPC communication of RocketMQ

Abstr: how to design RPC communication layer model is a key consideration for any MQ with strong performance In the first part, the protocol format, message encoding and decoding, communication mode (synchronous / asynchronous / one-way), message sending / receiving and asynchronous callback of Rocke ...

Posted on Fri, 05 Jun 2020 22:04:29 -0700 by kelesis

aop implementation of spring framework

1. What is AOP AOP(Aspect Oriented Programming) means: face-to-face programming, a technology to realize the only maintenance of program functions through precompiling and runtime dynamic agent. AOP is the continuation of OOP, a hot spot of software development, an important content of spring framewor ...

Posted on Fri, 05 Jun 2020 21:49:15 -0700 by jmgrhm

python's requests library and beutifusoup library crawling girls' pictures

1: python crawler - using requests library to get information of web page Record your reptile process In fact, I want to use jsonpath and json before climbing, and then I found that after opening the Meitu bar website, I only thought about the methods of crawling the requests library and the beautifu ...

Posted on Thu, 04 Jun 2020 08:39:09 -0700 by Jay87

No doubt!This is the clearest article to explain Java.I/O streaming

Table of Contents Simple combing Understand File streams are the basis of io streams, involving buffer streams, which are operations that use io streams in memory. Conversion streams, as the name implies, are conversions between bytes and character streams., to have byte stream and character stream first, object stream, the most important is ...

Posted on Wed, 03 Jun 2020 09:25:29 -0700 by d~l

Android 7.0 open camera (rights and content provider)

Most of this article comes from the second line of code, only part of the permission problems are changed and explained The main problems are Android 6.0 permission and 7.0 URL. You need to set permissions first <! -- camera -- > <uses-permission android:name="android.permission.CAMERA" /> <! -- get sd card write permi ...

Posted on Sun, 31 May 2020 06:47:55 -0700 by newbie_07

Use Python to draw your own personal footprint map, accurate to the city level

preface The text and pictures of this article are from the Internet, only for learning and communication, not for any commercial purpose. The copyright belongs to the original author. If you have any questions, please contact us in time for handling. Add Penguin Group 695185429 and you can get it for free. All the information is in the group fi ...

Posted on Sun, 31 May 2020 02:08:36 -0700 by Leesa

Analysis of file dependence of Qt in creating Application

When using QtCreator to create Application program, it will automatically create * * *. UI file in the folder "build - * * * - Desktop"_ Qt_ ***-Generate UI in debug_ ***. h, * * *. UI can be adjusted through QtDesigner, and a c + + class with the same name will be created in the folder of * * *. UI. This brings us a lot of doubts. Ho ...

Posted on Sat, 30 May 2020 21:40:07 -0700 by andy1398

Apache HttpClient4.5 setting TLS protocol

When using the crawler made by webmagic to crawl the website data, we found that some pictures could not be crawled. After a comparison, it is found that all the pictures that cannot be crawled report the same error: Encrypted HTTPS traffic flows through this CONNECT tunnel. HTTPS Decryption is enabled in Fiddler, s ...

Posted on Thu, 28 May 2020 08:25:15 -0700 by Tekime

Python -- File operations (manipulating files)

File operations include: read, write, modify Multiple operations for files: 1 # Read all the contents of the file 2 data = open("yesteday.txt", encoding="utf-8") .read() 3 print(data) 4 5 ''' f:File handle (file name, character set, size, starting position on hard disk containing this file) ''' 6 7 # 'a'=append Append 8 f = open("ye ...

Posted on Sat, 23 May 2020 10:00:15 -0700 by mikeyinsane