上一页 1 2 3 4 5 6 7 ··· 21 下一页
摘要: 1. 死信定义 无法被消费的消息,称为死信。 如果死信一直留在队列中,会导致一直被消费,却从不消费成功,专门有一个存放死信的队列,称为死信队列(DDX, dead-letter-exchange)。 死信队列 DLX,Dead Letter Exchange的缩写,又死信邮箱、死信交换机。其实DLX 阅读全文
posted @ 2023-04-29 09:41 BUG弄潮儿 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1.概述 要实现RabbitMQ的消息队列延迟功能,一般采用官方提供的 rabbitmq_delayed_message_exchange插件。但RabbitMQ版本必须是3.5.8以上才支持该插件,否则得用其死信队列功能。 2.安装RabbitMQ延迟插件 检查插件 使用rabbitmq-plug 阅读全文
posted @ 2023-04-29 09:40 BUG弄潮儿 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1.字符串 1.1 返回字符串类型 c/c++代码 全局变量 char retp[1024]; const char* getStr1(int a, int b){ memset(retp, 0, 1024); char outstr[256]; memset(outstr, 0, 256); if 阅读全文
posted @ 2023-03-15 21:08 BUG弄潮儿 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 1. Java调用本地代码常见的两种方案 JNI JNI(Java Native Interface),有过不同语言间通信开发经历的一般都知道,它允许java和其他语言代码(尤其是C/C++)进行交互,只要遵守约定即可。首先看下JNI调用C/C++过程,注意写程序时自下而上,调用时自上而下: 可见步 阅读全文
posted @ 2023-03-15 21:06 BUG弄潮儿 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 1. 创建动态链接库项目 创建jnaTest项目 下一步中填写项目名称和存储的目录;然后直接创建即可 创建结果 2. 定义头文件 #pragma once #ifndef JNA_TEST_H #define JNA_TEST_H #ifdef __cplusplus extern "C" { #e 阅读全文
posted @ 2023-03-15 20:50 BUG弄潮儿 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1. JNA JNA介绍 JNA(Java Native Access )提供一组Java工具类用于在运行期动态访问系统本地库(native library:如Window的dll)而不需要编写任何Native/JNI代码。开发人员只要在一个java接口中描述目标native library的函数与 阅读全文
posted @ 2023-03-15 20:49 BUG弄潮儿 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 1. Micrometer简介 Micrometer为Java平台上的性能数据收集提供了一个通用的API,它提供了多种度量指标类型(Timers、Guauges、Counters等),同时支持接入不同的监控系统,例如Influxdb、Graphite、Prometheus等。可以通过Micromet 阅读全文
posted @ 2023-03-03 22:31 BUG弄潮儿 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 1.prometheus接入springboot prometheus安装后,在安装目录有一个默认的配置文件prometheus.yml # my global config global: scrape_interval: 15s # Set the scrape interval to ever 阅读全文
posted @ 2023-03-03 22:30 BUG弄潮儿 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1 安装prometheus 1.1 下载prometheus 下载地址 https://prometheus.io/download/#prometheus 下载 wget https://github.com/prometheus/prometheus/releases/download/v2. 阅读全文
posted @ 2023-03-03 22:29 BUG弄潮儿 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 1.创建项目 pom.xml引入相关依赖 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http 阅读全文
posted @ 2023-03-03 22:28 BUG弄潮儿 阅读(466) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 21 下一页