springboot 微服务之集成RabbitMQ消息中间件 ...
分类:
编程语言 时间:
2020-06-30 13:15:13
阅读次数:
68
#include<iostream> #include<cstring> #include<algorithm> #include<cmath> #include<cstdlib> #include<climits> #include<stack> #include<vector> #include ...
分类:
其他好文 时间:
2020-06-29 22:59:58
阅读次数:
65
P3378 【模板】堆 #include<bits/stdc++.h> using namespace std; priority_queue<int,vector<int>,greater<int> >q;//小根堆 int n; int op; int x; int main(){ scanf( ...
分类:
其他好文 时间:
2020-06-29 18:42:21
阅读次数:
76
A.Required Remainder 传送门 #include<bits/stdc++.h> using namespace std; #pragma GCC optimize(2) typedef long long ll; typedef unsigned long long ull; ty ...
分类:
其他好文 时间:
2020-06-29 17:00:21
阅读次数:
91
最近有安装一次rabbitmq升级到3.8.5版本,这个安装真的是省事简单 直接用官方脚本运行即可 #!/bin/sh ## If sudo is not available on the system, ## uncomment the line below to install it # apt ...
分类:
其他好文 时间:
2020-06-29 15:26:44
阅读次数:
81
#include<iostream> #include<cmath> #include<vector> #include<stack> #include<queue> using namespace std; struct Node { Node* next; int val; Node() {}; ...
分类:
其他好文 时间:
2020-06-29 13:29:53
阅读次数:
43
一、消息队列 RabbitMQ是目前非常热门的一款消息中间件,不管是互联网大厂还是中小企业都在大量使用。 1.1 什么是消息队列 MQ全称为Message Queue,即消息队列。“消息队列”是在消息的传输过程中保存消息的容器。它是典型的:生产者、消费者模型。生产者不断向消息队列中生产消息,消费者不 ...
分类:
编程语言 时间:
2020-06-29 11:54:48
阅读次数:
71
考场上随手构造了一组数据把自己卡掉了 然后一直都是掉线状态了。 最后发现这个东西不是subtask -1的情况不多 所以就没管无解直接莽 写题有点晚 故没调出来。。 考虑怎么做 容易想到建立AC自动机 然后不能跑到结尾节点 fail是结尾节点的也不能跑。 把那些节点抽出来就可以随便跑了 题目描述非常 ...
分类:
其他好文 时间:
2020-06-29 10:06:59
阅读次数:
53
socketserver模块使用与源码分析 前言 在前面的学习中我们其实已经可以通过socket模块来建立我们的服务端,并且还介绍了关于TCP协议的粘包问题。但是还有一个非常大的问题就是我们所编写的Server端是不支持并发性服务的,在我们之前的代码中只能加入一个通信循环来进行排队式的单窗口一对一服 ...
分类:
其他好文 时间:
2020-06-29 09:36:03
阅读次数:
54
#ifndef __LINKQUEUE_H__ #define __LINKQUEUE_H__ #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define INFEASIBLF -1 #define OVERFLOW -2 ...
分类:
编程语言 时间:
2020-06-29 00:47:58
阅读次数:
119