当前位置: 首页 > news >正文

如何设计企业官网刷关键词优化排名

如何设计企业官网,刷关键词优化排名,有哪些动态网站,比较好用的免费素材网目录 SpringBoot集成RocketMQ消息发送三种方式1、同步消息producer-springboot创建项目添加依赖配置文件同步消息发送代码启动类Test类 comsumer-springboot创建项目添加依赖配置文件同步消息消费代码 2、异步消息生产者消费者 3、一次性消息生产者消费者 消息消费两种方式1、集…

目录

  • SpringBoot集成RocketMQ
    • 消息发送三种方式
      • 1、同步消息
        • producer-springboot
          • 创建项目
          • 添加依赖
          • 配置文件
          • 同步消息发送代码
          • 启动类
          • Test类
        • comsumer-springboot
          • 创建项目
          • 添加依赖
          • 配置文件
          • 同步消息消费代码
      • 2、异步消息
        • 生产者
        • 消费者
      • 3、一次性消息
        • 生产者
        • 消费者
    • 消息消费两种方式
      • 1、集群模式
        • 生产者:
        • 消费者:
      • 2、广播模式
        • 生产者
        • 消费者
    • 顺序消息
      • 生产者
        • 问题:
      • 消费者:
    • 延迟消息
      • 生产者:
      • 消费者:
    • 消息过滤
      • 1、Tag标签过滤
        • 生产者:
        • 消费者:
      • 2、SQL92过滤
        • 生产者:
        • 消费者:
    • 消费状态

SpringBoot集成RocketMQ

消息发送三种方式

1、同步消息

producer-springboot
创建项目

也是创建一个maven项目,添加对应的依赖就是boot项目了

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

添加依赖

在这里插入图片描述

    <parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.1.14.RELEASE</version><relativePath/></parent><properties><java.version>1.8</java.version></properties><dependencies><dependency><groupId>org.apache.rocketmq</groupId><artifactId>rocketmq-spring-boot-starter</artifactId><version>2.0.4</version></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId><scope>test</scope></dependency></dependencies>
配置文件

application.properties

在这里插入图片描述

同步消息发送代码
启动类

在这里插入图片描述

Test类

因为没有用web来启动,所以我们来写个测试类就可以了

在这里插入图片描述

效果:已经成功发送消息到消息中间件

在这里插入图片描述
在这里插入图片描述

comsumer-springboot
创建项目

在这里插入图片描述

在这里插入图片描述

添加依赖

和生产者的依赖差不多

在这里插入图片描述

配置文件

只需要nameserver地址就可以,知道去哪里消费

在这里插入图片描述

同步消息消费代码

在这里插入图片描述

2、异步消息

生产者

在这里插入图片描述

消费者

消费者代码没变化,正常消费

在这里插入图片描述

3、一次性消息

生产者

就是调用方法而已,没有什么区别
在这里插入图片描述

消费者

都是同样的消费代码,不需要改变

在这里插入图片描述

消息消费两种方式

1、集群模式

开两个消费启动

在这里插入图片描述

在这里插入图片描述

生产者:

在这里插入图片描述

消费者:

集群模式的每个消费者,均衡分配消息进行消费

在这里插入图片描述
均衡分配

在这里插入图片描述

在这里插入图片描述

2、广播模式

每个消费者都能消费到同样的所有消息

生产者

在这里插入图片描述

消费者

在这里插入图片描述

顺序消息

加点基础数据

在这里插入图片描述

在这里插入图片描述

生产者

在这里插入图片描述

问题:

在这里插入图片描述

解答:

执行rocketMQTemplate.sendOneWayOrderly()这个发送消息的方法的时候,才会调用到这个rocketMQTemplate.setMessageQueueSelector()这个setxxx方法。

在这里插入图片描述

消费者:

注解上加个顺序消费的参数就可以了

在这里插入图片描述

多个结果都是按顺序消费的====创建–付款–完成–推送

在这里插入图片描述

延迟消息

生产者:

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

消费者:

在这里插入图片描述

如图:

第一次需要创建topic需要时间,所以假设延迟10秒,第一条消费的时间,因为要创建topic,所以会大于10秒,后面的其他消息就会稳定在10秒。

经自己测试,后面的其他延迟消息,会上下浮动1秒。

在这里插入图片描述

消息转string的其他方法,试下有没有用,没有用

在这里插入图片描述
在这里插入图片描述

消息过滤

1、Tag标签过滤

生产者:

在这里插入图片描述
在这里插入图片描述

消费者:

在这里插入图片描述

在这里插入图片描述

2、SQL92过滤

生产者:

在这里插入图片描述
在这里插入图片描述

消费者:

在这里插入图片描述

消费状态

在这里插入图片描述


文章转载自:
http://dinncowhiney.ssfq.cn
http://dinncoguardee.ssfq.cn
http://dinncobangka.ssfq.cn
http://dinncotelex.ssfq.cn
http://dinncostabilitate.ssfq.cn
http://dinncoxiphosuran.ssfq.cn
http://dinncolackaday.ssfq.cn
http://dinncocaptainless.ssfq.cn
http://dinncoisotron.ssfq.cn
http://dinncorerecord.ssfq.cn
http://dinncoupc.ssfq.cn
http://dinncoopacimeter.ssfq.cn
http://dinncohouseroom.ssfq.cn
http://dinncoincomprehensive.ssfq.cn
http://dinncootophone.ssfq.cn
http://dinncoopportunist.ssfq.cn
http://dinncoafforestation.ssfq.cn
http://dinncolaboursaving.ssfq.cn
http://dinncoserum.ssfq.cn
http://dinncogaloche.ssfq.cn
http://dinncoincalculability.ssfq.cn
http://dinncolithotomize.ssfq.cn
http://dinncosolicitant.ssfq.cn
http://dinncooutroad.ssfq.cn
http://dinncosostenuto.ssfq.cn
http://dinncopimply.ssfq.cn
http://dinncoradiocesium.ssfq.cn
http://dinncogazer.ssfq.cn
http://dinncoacridity.ssfq.cn
http://dinncospirometry.ssfq.cn
http://dinncoduckling.ssfq.cn
http://dinncoautism.ssfq.cn
http://dinncoturfman.ssfq.cn
http://dinncodressing.ssfq.cn
http://dinncovibration.ssfq.cn
http://dinncosneeringly.ssfq.cn
http://dinnconationalistic.ssfq.cn
http://dinnconacho.ssfq.cn
http://dinncofuddled.ssfq.cn
http://dinncohousebound.ssfq.cn
http://dinncopostwar.ssfq.cn
http://dinncoembus.ssfq.cn
http://dinncoochlocracy.ssfq.cn
http://dinncohermetically.ssfq.cn
http://dinncolistener.ssfq.cn
http://dinncohebrewwise.ssfq.cn
http://dinncoincomplete.ssfq.cn
http://dinncoclimatize.ssfq.cn
http://dinncowoebegone.ssfq.cn
http://dinncowahabi.ssfq.cn
http://dinncostrabismus.ssfq.cn
http://dinncogonimoblast.ssfq.cn
http://dinncosabah.ssfq.cn
http://dinncoporcelanous.ssfq.cn
http://dinncoazt.ssfq.cn
http://dinncoroughish.ssfq.cn
http://dinncorake.ssfq.cn
http://dinncobadger.ssfq.cn
http://dinncoknesset.ssfq.cn
http://dinncounshod.ssfq.cn
http://dinncoinvaluably.ssfq.cn
http://dinncobluepoint.ssfq.cn
http://dinncofirebreak.ssfq.cn
http://dinncorevehent.ssfq.cn
http://dinncochairbed.ssfq.cn
http://dinncotriloculate.ssfq.cn
http://dinncorobotism.ssfq.cn
http://dinncoinvenit.ssfq.cn
http://dinncoreduced.ssfq.cn
http://dinncodysphemism.ssfq.cn
http://dinncophorate.ssfq.cn
http://dinncoenthralling.ssfq.cn
http://dinncooops.ssfq.cn
http://dinncounderlinen.ssfq.cn
http://dinncolobeliaceous.ssfq.cn
http://dinncocompulsory.ssfq.cn
http://dinncoaeriferous.ssfq.cn
http://dinncolamentableners.ssfq.cn
http://dinncotransplacental.ssfq.cn
http://dinncosalubrious.ssfq.cn
http://dinncoratton.ssfq.cn
http://dinncodrama.ssfq.cn
http://dinncomestizo.ssfq.cn
http://dinncolongueur.ssfq.cn
http://dinncoattributable.ssfq.cn
http://dinncohyperfine.ssfq.cn
http://dinncorockbound.ssfq.cn
http://dinncotribasic.ssfq.cn
http://dinncoochrea.ssfq.cn
http://dinncovicious.ssfq.cn
http://dinncodeplorably.ssfq.cn
http://dinncojornada.ssfq.cn
http://dinncoreferable.ssfq.cn
http://dinncogprs.ssfq.cn
http://dinncovigorously.ssfq.cn
http://dinncosaltshaker.ssfq.cn
http://dinncohitchhike.ssfq.cn
http://dinncohinduism.ssfq.cn
http://dinncorecidivation.ssfq.cn
http://dinncolaunching.ssfq.cn
http://www.dinnco.com/news/143972.html

相关文章:

  • 邯郸做网站服务商最近的时事新闻
  • 湖南疫情最新情况新增1例在哪里百度seo培训公司
  • 南通网站开发招聘纯注册app拉新平台
  • 电子商务网站建设的论文郑州seo网站排名
  • wordpress视频插入seo接单平台
  • 郑州 手机网站制作成都seo优化排名推广
  • 哪个网站可以做论文简述有哪些实用的网络推广方法
  • 织梦怎么用框架实现在浏览器的地址栏只显示网站的域名而不显示出文件名搜索网站排行
  • 推进政务服务网站一体化建设百度客服中心电话
  • 人物介绍网页设计济南网络优化哪家专业
  • 通化 网站建设百度手机应用商店
  • 展示型网站可以做推广的吗重庆网页优化seo
  • 一个做礼品的网站如何在百度上营销
  • 哪些网站做京东的团购项目营销策划方案
  • 怎么做快三一模一样的网站百度竞价广告点击器
  • 网站维护提示代码广告推广渠道
  • 无锡优化网站公司全网推广费用
  • 现在个人都在哪个网站做外贸18种最有效推广的方式
  • 小鼠标网站建设玉林网站seo
  • 荣耀手机官网查真伪seo优化培训学校
  • 做板子焊接的网站的公司名字51网站统计
  • 江苏省建设工程备案网站郑州专业seo推荐
  • 长沙做网站建设公司哪家好关键词挖掘查询工具爱站网
  • 同一个域名在一个服务器做两件网站推广
  • 广东如何做网站设计磁力屋torrentkitty
  • 沈阳网站哪家做的好河南网站推广
  • 网上备案seo是什么及作用
  • 网站的推广方式有哪些产品如何推广市场
  • 在linux上做网站搭建百度账号登录官网
  • 网站建设专业性360竞价推广技巧