`
jiq408694711
  • 浏览: 36573 次
  • 性别: Icon_minigender_1
  • 来自: 南京
文章分类
社区版块
存档分类
最新评论

Shuttle Bus体系架构的特征

 
阅读更多

Request-responsepattern

Request-responseorrequest-replyis one of the basic methods computers use to talk to each other. When using request-response, the first computer requests some data and the second computer responds to the request. Usually there is a series of such interchanges until the complete message is sent. Browsing a web page is an example of request-response communication. One can think of request-response as being like a telephone call, where you call someone and they answer the call. Compare this withone-waycomputer communication, which is like the push-to-talk or "barge in" feature found on some phones and two-way radios, where a message is sent without waiting for a response. Sending an email is an example of one-way communication.

Request-response, also known as request-reply, is amessage exchange patternin which a requestor sends a request message to a replier system which receives and processes the request, ultimately returning a message in response. This is a simple, but powerful messaging pattern which allows two applications to have a two-way conversation with one another over a channel. This pattern is especially common in client-server architectures.[1]

For simplicity, this pattern is typically implemented in a purelysynchronousfashion, as inweb servicecalls overHTTP, which holds a connection open and waits until the response is delivered or thetimeoutperiod expires. However, request-response may also be implementedasynchronously, with a response being returned at some unknown later time. This is often referred to as "sync over async", or "sync/async", and is common inenterprise application integration(EAI) implementations where slowaggregations, time-intensive functions, orhuman workflowmust be performed before a response can be constructed and delivered.

Publish–subscribe pattern

Insoftware architecture,publish–subscribeis amessaging patternwhere senders ofmessages, called publishers, do not program the messages to be sent directly to specific receivers, called subscribers. Instead, published messages are characterized into classes, without knowledge of what, if any, subscribers there may be. Similarly, subscribers express interest in one or more classes, and only receive messages that are of interest, without knowledge of what, if any, publishers there are.

Pub/sub is a sibling of themessage queueparadigm, and is typically one part of a largermessage-oriented middlewaresystem. Most messaging systems support both the pub/sub and message queue models in theirAPI, e.g.Java Message Service(JMS).

This pattern provides greater networkscalabilityand a more dynamicnetwork topology.

-----------------------------------------------------------------------------------------------------------------------

PS:以上内容主要摘自维基百科。

Message Distribution

It is conceivable that an endpoint can start falling behind with its processing if it receives too much work. In such cases it may be changed to distribute messages to worker nodes.

The endpoint that you would like to have message distributed on would require a control inbox configuration since all Shuttle messages should be processed without waiting in a queue like the inbox proper behind potentially thousands of messages. Each worker is identified as such in its configuration and the control inbox of the endpoint performing the distribution is required。

Any message that is sent to the distributor will be sent on to an available worker. Each thread running on a worker will send aWorkerThreadAvailableCommandto the distributor's control inbox once it becomes idle. The distributor will then be able to send on a message for each available thread oo the worker.

========================== 分割线 ===================

Pipeline-based processing(管道,事件,观察者)

Shuttle makes use of event-based pipelines for:

  • Sending messages
  • Receiving / handling messages
  • Outbox processing
  • Distributor processing
  • Service bus startup

You can even add your own event anywhere in the pipeline. Various observers handle these events so you can add an observer to any event:

分享到:
评论

相关推荐

    微信小程序开发初体验项目-用于BJTU周末shuttle bus预定

    本项目“微信小程序开发初体验项目-用于BJTU周末shuttle bus预定”是针对北京交通大学(BJTU)的周末校车预订系统,旨在方便学生和教职工预约校车服务。该项目的前端部分是`wxtour`,由微信开发者工具进行开发并上传...

    大学英语四级听力-.docx

    男生问女生关于大学 shuttle bus 系统的一些问题,例如哪里可以搭乘大学 shuttle bus、大学 shuttle bus 系统的范围、搭乘大学 shuttle bus 需要多少钱等。女生回答男生的问题,并提供了一些关于大学 shuttle bus ...

    小程序-北京交通大学BJTU周末shuttle bus预定-PHP后端.rar

    本项目为一款基于PHP后端的小程序——北京交通大学BJTU周末班车预定系统,旨在解决校园内师生周末出行需求,提高班车使用效率。 项目功能介绍: ... 2. 班车信息展示:系统提供详细的班车时刻表、路线及座位数等信息,...

    Shuttle ESB 入门实例

    本实例,使用ShuttleESB完成...下载实例后,需要配置QuickStart.Shuttle.Server项目的启动类型为:Shuttle.Core.Host项目的exe程序 步骤就是:右击QuickStart.Shuttle.Server——调试——启动操作——选择对应的路径。

    Shuttle Pro2控制手轮驱动

    "Shuttle Pro2控制手轮驱动"是一款专为Shuttle Pro2设计的硬件驱动程序,旨在确保这款专业级多媒体控制器能够与计算机系统无缝配合工作。Shuttle Pro2是一款多功能的控制设备,通常被音频和视频编辑师、音乐制作人...

    Shuttle Pub Sub

    Shuttle ESB中发布订阅模式的实例介绍。功能如下: 从消息发布端Pub发布一个消息事件OrderCompletedEvent,多个客户端(如SubA和SubB)订阅该事件OrderCompletedEvent。那么当Pub发布消息后,SubA和SubB就能够收到...

    高中英语单词天天记shuttle素材

    - C 短程穿梭运行的飞机(或火车,汽车):an aircraft (train, bus, etc.) used for traveling back and forth - C (织机的)梭子:sth that weaves or holds thread 2. 读音:['ʃʌtl] 3. 例句: - The shuttle...

    Mac 第三方连接Linux服务器——Shuttle

    标题 "Mac 第三方连接Linux服务器——Shuttle" 指的是在 macOS 系统中,通过第三方工具Shuttle来实现与Linux服务器的便捷连接。Shuttle是一款轻量级的应用程序,设计目的是简化开发者和系统管理员在Mac上访问远程...

    shuttle

    在微服务架构中,Shuttle可能作为服务间的通信中间件,实现服务发现、负载均衡、熔断和重试等高级功能。它可能与流行的开源项目如Spring Cloud、Dubbo等集成,提供了一种统一的接口来调用其他服务。 在大数据处理...

    Android-Shuttle.zip

    Android系统的架构基于Linux内核,这为其提供了强大的稳定性和安全性。Linux内核为Android提供了硬件抽象层,使得操作系统可以适配各种不同硬件平台。Android的安全模型基于权限管理系统,每个应用程序都有独立的...

    跨平台翻译系统 Shuttle.zip

    【标题】:Shuttle——一个跨平台的翻译管理系统 【描述】:Shuttle是由Square公司开源的一款强大的跨平台本地化系统。它旨在提供一个高效、便捷的解决方案,以支持多语言项目的管理和协作。Shuttle的核心特性包括...

    shuttle.cpp

    NOIP2018T3

    shuttle-cloud:Shuttle基于Spring Cloud的分布式实现

    Spring Cloud Config , Spring Boot Admin , Spring Cloud Gateway , Spring Cloud OpenFeign , Docker等核心技术,同时提供了基于Vue的前端项目和后台管理系统系统架构图项目结构shuttle-cloud├── admin --...

    shuttle-cli:Shuttle SSH管理器的命令行客户端

    它会读取您的默认shuttle.json文件,并为您提供一个CLI界面。 实际上,它也不需要Shuttle客户端。 您所需要的只是homefolder中的有效.shuttle.json文件。 $ shuttle +--------+----------------------------------...

    6842 - Shuttle Craft.mpd

    6842 - Shuttle Craft.mpd

    shuttle-esb:Shuttle.Esb 免费开源 .NET 企业服务总线的文档

    穿梭ESB,即Shuttle.Esb,是一个专为.NET开发者设计的免费开源企业服务总线(Enterprise Service Bus,简称ESB)。它旨在简化分布式系统中的通信,通过提供一套灵活的消息传递框架,帮助企业构建可扩展、模块化且...

    swift-Shuttle一个用于macOS的简单SSH快捷菜单

    **Swift-Shuttle:macOS上的高效SSH连接工具** Swift-Shuttle 是一款专为macOS设计的SSH快捷菜单应用,旨在简化系统中频繁的SSH连接操作。通过使用Swift语言进行开发,它提供了用户友好的界面和高效的性能,使得IT...

    30050 - Republic Attack Shuttle.mpd

    30050 - Republic Attack Shuttle.mpd

    pytorch_lstm-shuttle:LSTM-Shuttle的PyTorch实现

    LSTM-Shuttle的PyTorch实现 | 概述 LSTM-Shuttle是“” 和在自然语言处理的经验方法会议( EMNLP )2018中(长期) LSTM-Shuttle不仅向前读取穿梭内容,而且向后走。 向前穿梭可提高效率,向后穿梭可使模型有机会...

    shuttle:简约的部署工具

    Shuttle是用于小型应用程序和单服务器部署的简约应用程序部署工具。 配置存储为YAML编码文件,无需使用ruby代码。 在与目标服务器的SSH连接上执行操作。 安装 从Rubygems安装: gem install shuttle-deploy 或手动...

Global site tag (gtag.js) - Google Analytics