西维蜀黍

【Microservices】Orchestration and Choreography

Orchestration

Advantage

  • Easy to monitor the execution of workflows and handle task failures during workflow execution.

Disadvantage

  • May suffers from performance bottlenecks
    • all the data is indirectly passed between the services of the workflow resulting in unnecessary data-flows, consuming more bandwidth and hence weakening the performance of the workflow execution
  • Poor scalability
    • The overall performance of workflows reduces as the number of services and the volume of the data to be orchestrated in the workflow becomes larger.
  ...


【Architectural Pattern】Broker Pattern

Broker Pattern

A broker may be implemented in either a Pub/sub model or Point-to-point (P2P) model.

  • The publish-and-subscribe (pub/sub) model is intended for a one-to-many broadcast(Multicast) of information
  • The point-to-point (P2P) model is intended for a one-to-one communication (Unicast) between two specific applications.
  ...


【Paradigm】Internet of Things

Basic Idea

Things in IoT

  • Small gateway devices
  • Moderately powerful nodes
  • Cloud

IoT components

There are three IoT components which enables seamless ubicomp:

  • (a) Hardware—made up of sensors, actuators and embedded communication hardware
  • (b) Middleware—on demand storage and computing tools for data analytics
  • (c) Presentation—novel easy to understand visualization and interpretation tools which can be widely accessed on different platforms and which can be designed for different applications.
  ...


【IoT】IoT Protocols

  • CoAP
  • MQTT
  • AMQP
  • Websocket

CoAP

CoAP, representing Constrained Application Protocol, is a specialized Application Layer. Although application layer usually use HTTP to communicate between different nodes, the communication through HTTP has to have high computation complexity and energy consumption. Internet Engineering Task Force (ITEF) therefore designed CoAP and specified it in IETF RFC 7252 for constrained nodes and networks in the IoT. CoAP enables low-power compute-constrained devices to communicate between each other even through a constrained network with low bandwidth and low availability.

  ...


【IoT】Service Interaction in ioT

Exogenous Coordinnation

Properties

  • Separation between control flows and data flows
  • Use a (exogenous) coordinator to coordinate mutiple services in order to performan service composition

Centralized control flows & Central data flows

Properties

  • Centralized control flows
  • Centralized data flows
  ...