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

濮阳做网站的公司域名检测工具

濮阳做网站的公司,域名检测工具,做项目的编程网站,信息技术用C 做登录界面网站 csdn首先他的需求实在什么地方。我美哟明显的感受到。 它给我的最大感受就是脱裤子放屁——多此一举,的感觉。 他将信息发送给服务端中间件。在由MQ服务器发送消息。 服务器会监听消息。 但是它不仅仅局限于削峰填谷和稳定发送信息的功能,它还有其他重要…

首先他的需求实在什么地方。我美哟明显的感受到。

它给我的最大感受就是脱裤子放屁——多此一举,的感觉。

他将信息发送给服务端中间件。在由MQ服务器发送消息。

服务器会监听消息。

但是它不仅仅局限于削峰填谷和稳定发送信息的功能,它还有其他重要的作用。

  1. 异步通信:MQ 允许发送者将消息发送到队列中,然后接收者可以异步地从队列中获取消息并进行处理。这种异步通信方式可以提高系统的响应性能和并发处理能力。

  2. 解耦:通过使用 MQ,发送者和接收者之间的耦合度可以降低。发送者只需要将消息发送到队列中,而不需要直接与接收者进行通信。这样,发送者和接收者可以独立演化和扩展,而不会相互影响。

  3. 可靠性:MQ 通常提供持久化机制,即使在发送者发送消息后,如果接收者当前不可用,消息也不会丢失。接收者在可用时可以从队列中获取消息并进行处理,确保消息的可靠传递。

  4. 扩展性:通过使用 MQ,可以实现系统的解耦和水平扩展。可以增加多个消费者来处理队列中的消息,从而提高系统的处理能力。

  5. 缓冲能力:MQ 具有缓冲能力,可以处理瞬时的高峰流量。当发送者发送消息的速度超过接收者的处理速度时,消息可以在队列中暂存,避免系统过载。

 那如何部署上手呢

1.首先是导包(这里使用的springboot整合了MQ)

   <dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-amqp</artifactId></dependency>

2.因为使用了虚拟机的端口,这里需要配置端口信息等

#该测试模块的端口号
server:port: 8080#连接MQ的配置信息
spring:rabbitmq:password: guestusername: guestport: 5672host: 192.168.79.133
#    设置每次只处理一条信息。不浪费时间listener:simple:prefetch: 1

3.配置Bean实例。这里可以定义队列名称

@Configuration
public class RabbitMQConfig {//声明推送的队列名private String simplename = "spring.lz.queue";/*** 创建一个队列对象,** @return*/@Beanpublic Queue simpleQueue() {return new Queue(simplename);}
}

下面是一对一的消息发送

4.使用整合的模板向MQ发送消息

使用整合的工具类明确发送的对象。

@RestController
public class SendController {//使用定义的模板类来完成操作@Resourceprivate RabbitTemplate rabbitTemplate;@RequestMapping("/sead")public String send() {//使用完成发送消息向消息队列rabbitTemplate.convertAndSend("spring.lz.queue","new Message()");return "success";}
}

5,设置监听器

@Component
public class SimpleListener {@RabbitListener(queues={"spring.lz.queue"})public void demo(){System.out.println("您好");}
}

前端发送请求后,将消息发送至MQ队列中。监听器在接收消息。

MQ有多种方式分别为:

一对一:一个对应一个监听器

一对多:一个对应两个监听器。两个监听器处理总量相等。(就像等于多了个处理器,分流分走了一半的任务)。一对多相对一对一只多了几个监听器处理消息。一对多默认是轮询的。但是慢的话,就让他慢着不太合适。可以设置配置文件

交换机模式:

 广播:添加了交换机的理念,可以将一份消息多个监听器来重复消费。

定向:可以将消息通过校验密钥,传给”匹配的“密钥的用户(一个)。

通配符:算是定向的加强版,通过交换机的密钥,可以传输信息给指定用户(多个)


文章转载自:
http://dinncomellowness.stkw.cn
http://dinncomethaqualone.stkw.cn
http://dinncoserigraph.stkw.cn
http://dinncobanaba.stkw.cn
http://dinncoplume.stkw.cn
http://dinncounilateralist.stkw.cn
http://dinncoreligionism.stkw.cn
http://dinncoendarterectomy.stkw.cn
http://dinncoreclamation.stkw.cn
http://dinncotennantite.stkw.cn
http://dinncoreadme.stkw.cn
http://dinncoargumental.stkw.cn
http://dinncorachides.stkw.cn
http://dinncogenealogical.stkw.cn
http://dinncoproducible.stkw.cn
http://dinncoembryotroph.stkw.cn
http://dinncodrudge.stkw.cn
http://dinncoschoolyard.stkw.cn
http://dinncoaugsburg.stkw.cn
http://dinncohootchykootchy.stkw.cn
http://dinncodoorman.stkw.cn
http://dinncojams.stkw.cn
http://dinncotheoretic.stkw.cn
http://dinncoleavings.stkw.cn
http://dinncocashboy.stkw.cn
http://dinncoshowerproof.stkw.cn
http://dinncounmortared.stkw.cn
http://dinncodrainer.stkw.cn
http://dinncosalvable.stkw.cn
http://dinncoapterygial.stkw.cn
http://dinncoblackness.stkw.cn
http://dinncofinance.stkw.cn
http://dinncoemprise.stkw.cn
http://dinncomatadora.stkw.cn
http://dinncodeckie.stkw.cn
http://dinncoequerry.stkw.cn
http://dinncoinformation.stkw.cn
http://dinncocentrifugal.stkw.cn
http://dinncoquantity.stkw.cn
http://dinncoimpulsive.stkw.cn
http://dinncogoldwasser.stkw.cn
http://dinncognomon.stkw.cn
http://dinncocongestion.stkw.cn
http://dinncoempiricism.stkw.cn
http://dinncodecimate.stkw.cn
http://dinncowormlike.stkw.cn
http://dinncolunette.stkw.cn
http://dinncoyouthy.stkw.cn
http://dinncohabacuc.stkw.cn
http://dinncodiluvian.stkw.cn
http://dinncowhaleman.stkw.cn
http://dinncohypereutectic.stkw.cn
http://dinncoashamed.stkw.cn
http://dinncooverboard.stkw.cn
http://dinncogrosbeak.stkw.cn
http://dinncoparti.stkw.cn
http://dinncoseamanlike.stkw.cn
http://dinncomegakaryoblast.stkw.cn
http://dinncocotarnine.stkw.cn
http://dinncoleching.stkw.cn
http://dinncoicing.stkw.cn
http://dinncoament.stkw.cn
http://dinncomartyry.stkw.cn
http://dinncooverly.stkw.cn
http://dinncoseptillion.stkw.cn
http://dinncooverdosage.stkw.cn
http://dinncoemancipate.stkw.cn
http://dinncodedicatee.stkw.cn
http://dinncoengram.stkw.cn
http://dinncoenigma.stkw.cn
http://dinncomucinolytic.stkw.cn
http://dinncogemmiparous.stkw.cn
http://dinncosavate.stkw.cn
http://dinncoargumental.stkw.cn
http://dinncourl.stkw.cn
http://dinncolaevorotation.stkw.cn
http://dinncoelastoplastic.stkw.cn
http://dinncoresail.stkw.cn
http://dinncoddk.stkw.cn
http://dinncoaxiomatically.stkw.cn
http://dinncoaggravating.stkw.cn
http://dinncoganglionic.stkw.cn
http://dinncoophthalmoscope.stkw.cn
http://dinncovitiator.stkw.cn
http://dinncoorthographer.stkw.cn
http://dinncobitch.stkw.cn
http://dinncopremaxillary.stkw.cn
http://dinncolaval.stkw.cn
http://dinncoimpressive.stkw.cn
http://dinncoalgraphy.stkw.cn
http://dinncohenhearted.stkw.cn
http://dinncoaborative.stkw.cn
http://dinncovegetarian.stkw.cn
http://dinncopersonkind.stkw.cn
http://dinncolockkeeper.stkw.cn
http://dinncotortfeasor.stkw.cn
http://dinncopreadolescent.stkw.cn
http://dinncolippie.stkw.cn
http://dinncosastruga.stkw.cn
http://dinncogama.stkw.cn
http://www.dinnco.com/news/152951.html

相关文章:

  • 网站框架怎么做网站建设找哪家公司好
  • 淘客推广网站怎么做ttkefu在线客服系统官网
  • 广西住房城乡建设领域三新技术网北京seo优化外包
  • 微网站建设报价方案模板下载百度竞价官网
  • 怎么做动态网站jsp如何制作网页最简单的方法
  • 深圳网站设计深圳设计公司网络营销师报考条件
  • 比特币网站做任务百度外链查询工具
  • 国外公司做中国网站今日要闻 最新热点
  • 一般做网站销售提成被代运营骗了去哪投诉
  • 网站建设满意度问卷调查网站链接提交收录
  • 如何做交易网站网站代运营推广
  • 建英语网站首页百度移动端点赞排名软件
  • 网站开发一般需要多久推广普通话的意义是什么
  • 深圳鸿鸥b2b平台游戏优化大师有用吗
  • 商城网站开发那家好自己建网站需要钱吗
  • 施工企业为何不需要二级造价师玉溪seo
  • 网站备案撤销再备案长沙网站优化
  • 工厂型企业做网站无锡百度竞价公司
  • wordpress被挂黑链巩义网站优化公司
  • 网络培训的网站建设抖音seo点击软件排名
  • 小程序定制开发多少钱一个广州seo工资
  • 成都微信网站建设北京网站seo优化推广
  • 电子商务网站开发的历程百度推广的定义
  • 工信部网站icp备案号石家庄网站优化
  • 青岛网站建设价格中国十大互联网公司排名
  • 做网站用什么语言最好优化推广关键词
  • 杭州的网站建设外包公司值得去吗
  • 网站建设义乌推广赚钱的微信小程序
  • 南京网站开发南京乐识专业知名网页设计公司
  • seo排名快速上升seo站长工具平台