Installation and use of Nacos
Installation and use of Nacos
1, Introduction
Nacos component is a recommended implementation component of registry and configuration center in spring cloud component library.
As a registryAs the configuration center
2, Install the Nacos registry
Download Nacos server: https://github.com/alibaba/nacos/releasesInstallation: after decompress ...
Added by karapantass on Fri, 25 Feb 2022 06:19:44 +0200
Kafka's online deployment scheme for Kafka production optimization
1. Operating system
Deploy on Linux
I/O modelData network transmission efficiency
1.1 I/O model level
The I/O model is the method by which the operating system executes IO instructions.
There are five types
Blocking IONon blocking IOIO multiplexingSignal driven IOAsynchronous IO
We can simply think that the latter model is more efficient ...
Added by PHPycho on Wed, 23 Feb 2022 14:09:46 +0200
[RabbitMQ series that can be understood by laymen] - RabbitMQ quick introduction (including rich examples)
preface
Congratulations to all the friends who read this article for successfully unlocking the quick start content of RabbitMQ series ๐ Through this article, you will quickly learn what middleware is? What is rabbit MQ? How does RabbitMQ work? Finally, Xiaoming will take you through an example to deepen your impression of RabbitMQ ...
Added by s_dhumal on Wed, 23 Feb 2022 02:51:16 +0200
koa onion model
I What is an onion model? Look first ๐ฐ
const Koa = require('koa');
const app = new Koa();
const PORT = 3000;
// #1
app.use(async (ctx, next)=>{
console.log(1)
await next(); //Pause the current program
console.log(1)
});
// #2
app.use(async (ctx, next) => {
console.log(2)
await next();
console.log(2)
})
app.us ...
Added by fabby on Tue, 15 Feb 2022 09:31:47 +0200
gorilla/mux framework (RK boot): add tracing Middleware
introduceThrough a complete example, based on gorilla/mux Add tracing middleware to microservices.What is tracing middleware?The Tracing middleware will record the Tracing data for each API request, which can be viewed by users using tools like Jaeger.We will use rk-boot To start gorilla/mux Microservices.rk-boot Is a framework that can start a ...
Added by graham on Mon, 14 Feb 2022 10:42:41 +0200
Based on redis6 0 deployment of mini version message queue
Technical research background
As the current R & D team is in the start-up stage of the company, there is no mature operation and maintenance system, and the ability to build and maintain the mature MQ commonly seen in the market is insufficient. However, we hope to have a lightweight message system for the members of the R & D team. T ...
Added by Hellusius on Sun, 13 Feb 2022 16:37:18 +0200
Ten minute RabbitMQ environment setup (Linux)
preface
RabbitMQ is the message queue most used by Internet companies at present. It is commonly used in the following scenarios:
Asynchronous, decouplingPeak elimination, Pinggu
The following is the main content of this article. This case is for reference only
1, Installation mode
Install via yumDownload the installation packag ...
Added by abigbluewhale on Thu, 10 Feb 2022 14:10:05 +0200
express framework Foundation
Installation and use
// Import express module
const express = require('express');
// Register express module
const app = express();
//Mount routing
app.get('/',(req,res)=>{
res.send(`<h1>home page</h1>`);
})
app.get('/user',(req,res)=>{
//req request object get request parameters
res.send(req.query);
})
app.g ...
Added by Az_Critter on Tue, 08 Feb 2022 01:13:16 +0200
๐ Demo of several message sending methods of Rocket MQ
1, Basic sample
Knowledge foreshadowing
The steps of message sending are briefly listed as follows:
Create a message producer and specify the producer group name
Contact the Broker manager nameserver first. You need to specify the nameserver address
Start producer.
Create a message object and specify the Topic, Tag and message body
send messag ...
Added by compound_eye on Thu, 03 Feb 2022 20:17:58 +0200
Rocketmq source code analysis - message retry and delay fault-tolerant logic in the Producer part
Problem point
1. What if the message fails to be sent (due to the network, the broker hangs up)? How does the sender achieve high availability? 2. How to select the message queue, that is, which message queue does the producer send messages to? 3. Why design a broker failure delay mechanism separately?
Producer message retry
When the produce ...
Added by dmcdivitt on Thu, 03 Feb 2022 03:28:38 +0200