题目 Atcoder 思路 代码 #include <iostream> #include <cstring> #include <algorithm> #include <queue> using namespace std; const int N = 500010, INF = 1e9; in ...
分类:
其他好文 时间:
2021-04-28 11:51:48
阅读次数:
0
思路: 水题,略过 Tip: 无 #include <bits/stdc++.h> using namespace std; const int maxn = 1000 + 5; queue<char> que[maxn]; stack<char> s; int main() { int n, m, ...
分类:
其他好文 时间:
2021-04-27 15:08:37
阅读次数:
0
#[云计算]OpenStack - RabbitMQ 参考: RabbitMQ核心概念以及工作原理:https://www.jianshu.com/p/256c502d09cd RabbitMQ在OpenStack中的位置(Queue) 什么是RabbitMQ? MQ全程为Message Queue ...
分类:
其他好文 时间:
2021-04-27 14:55:29
阅读次数:
0
本文主要讲解如何通过RabbitMQ实现定时任务(延时队列) 环境准备 需要在MQ中进行安装插件 地址链接 插件介绍地址:https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/ 使用场景 作为一个新的预支 ...
1、拉取镜像 docker pull rabbitmq:3.8.5-management 2、创建挂载文件夹 mkdir -p /data/docker/rabbitmq 3、启动容器 docker run -d --name rabbit -p 5672:5672 -p 15672:15672 - ...
分类:
其他好文 时间:
2021-04-23 11:59:26
阅读次数:
0
RabbitMQ主要实现消息推送和消费 用springboot实现消息推送 1. 新建springboot项目 通过idea,创建一个springboot默认项目,在pom.xml中添加如下依赖。 <dependency> <groupId>org.springframework.boot</gro ...
分类:
编程语言 时间:
2021-04-22 16:11:55
阅读次数:
0
默认情况下,EasyNetQ的消息处理过程中,如果throw exception,那么,依然是认为消息已经送达,不会再次推送,为了让RabbitMQ再次推送,可以这么实现: public sealed class AlwaysRequeueErrorStrategy : IConsumerError ...
分类:
Web程序 时间:
2021-04-21 12:54:44
阅读次数:
0
最近做题养成了一个不太好的习惯,习惯性的先去看discuss有没有坑,越是惧怕错误越可能出错,之后的锻炼,出错再去check discuss吧 简单的BFS #include <iostream> #include <algorithm> #include <queue> #include <str ...
分类:
其他好文 时间:
2021-04-21 12:34:23
阅读次数:
0
快速查看ES集群状态 GET _cluster/health { "cluster_name": "elasticsearch", "status": "yellow", "timed_out": false, "number_of_nodes": 1, "number_of_data_nodes" ...
分类:
其他好文 时间:
2021-04-20 14:54:42
阅读次数:
0
学习rabbitMQ时 自己写了一个发送者 案例 运行后报错: Caused by: com.rabbitmq.client.ShutdownSignalException: connection error; protocol method: #method<connection.close>(r ...
分类:
数据库 时间:
2021-04-20 14:20:37
阅读次数:
0