MQ异步化,与MQ的基础知识
扩展:异步化可以配上线程池,线程池满后,会变成同步
一般是把不是核心的,耗时长的功能做异步化处理。
异步化存在的问题:如果异步线程里的内容耗时较长,业务量又较大,就会消耗大量服务器资源,影响核心功能
MQ:和redis一样,是一个中间件,需要单独安装。
常用的MQ有rocketmq, kafka, rabbitmq等
MQ关键词:topic、服务端、发送方、消费方
autoCreateTopicEnable的作用
加上这个参数后,SpringBoot可发送任意的topic到RocketMQ,否则需要在RocketMQ里先创建好Topic
Warning: Undefined variable $aria_req in /www/wwwroot/l.lvovl.cn/wp-content/themes/JieStyle-Two-master/comments.php on line 26
Warning: Undefined variable $aria_req in /www/wwwroot/l.lvovl.cn/wp-content/themes/JieStyle-Two-master/comments.php on line 27
Warning: Undefined variable $aria_req in /www/wwwroot/l.lvovl.cn/wp-content/themes/JieStyle-Two-master/comments.php on line 28