Web Services

  • Performance: Like response time, Latency, Execution time,
  • Availability: Probability of given request access with the service,
  • Reliability: Probability of given request is successfully invoked the service.
  1. Service-Oriented

OSI (Open System Interconnection) Model

Reference: http://computertechnologyandi.weebly.com/unit-2-networking.html

Sending Process:

  • Application: Receive data from outside and send to the presentation layer.
  • Presentation: Format data (encrypt, compress) in order to place them on network.
  • Session: Make connection with the receiver’s place.
  • Transport: Formatted message is brake down in to the small packets and label them in order to place them in network as regularly.
  • Network: Add logical address to each small packet to ensure the location.
  • Data-link: Add physical address to each packet. Other than that this also adds Cyclic Redundency Checks (CRC) to ensure error free delivery. As well, data link layer is responsible for monitor network and decide when to sent the packets.
  • Physical: Each bit received from data-link layer made in to the appropriate format. For an instance, if it is a wired network, transmit each bit in to electric signal.

Receiving Process:

  • Physical: Receiver’s physical layer receives signals in its format and transform them in to the 0 and 1. Then pass to data-link layer.
  • Data-link: It gains each bit in to the frame. Also, verify before theses frames send to above layer by ensuring it is error free delivery through CRC. Other than that physical address of receiving computer is also verified. If it is verified properly, then remove the address and send to the network layer. Otherwise, drop the packet.
  • Network: Check the logical address of receiving machine and verified it. If it is verified properly, then remove the logical address and send to transport layer. Otherwise, the packet is removed.
  • Transport: Gather all the packets received and make a whole message. Then pass to the session layer.
  • Session: Close the connection between sender and receiver after the message is received.
  • Presentation: In here, undo all the formatting done by sender. If it is encrypted then decrypted.
  • Application: Received data is passed to the suitable server to obtain corresponding services.

SOAP (Simple Object Access Protocol)

  • None: The receiver does not need to process the data.
  • Next: The received node can process the data.
  • Ultimate receiver: Final recipient of the message.

RESTful (Representational State Transfer)

  • GET — Make read only access to resource,
  • POST — Create a new resource,
  • DELETE — Delete existing resource,
  • PUT — Alter existing resource or create new resource.

Message Broker

  1. Point-to-Point Messaging
  • A message in the queue is sent to only one receiver at once. That means only one receiver (Consumer) can consume the message sent by sender (Producer).
  • More than one sender can sends the message to the queue via same or different connections.
  • More than one receiver can receives messages from the queue. But, one message should be received by only one receiver.
  • Senders and receivers can add or remove dynamically at run time.
  • Employee of the organization should receive his/her own payroll transactional details, not for others.
  • In that case, more than one receiver receives messages from sender since they have subscribe the service.
  • As well, the sender does not know who are asking for the services and to who he is producing the services.
  • Apache Kafka
  • AWS Amazon MQ
  • WSO2

Stay Safe !!!

--

--

--

Associate Software Engineer at Virtusa.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Android App Modularization at Wealthfront (Part 1)

Effective parallelization of a multi-module build

Integration with Ballerina — IV

The Gbox project: what are its features?

Import a DE Import Error Results file to a Data Extension

RabbitMQ at Tajawal

#62 — ETCD avec Pierre Zemb

Node With AWS DocumentDB using Mongoose

JPMS Ballot and Half Time

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sanduni Jayaweera

Sanduni Jayaweera

Associate Software Engineer at Virtusa.

More from Medium

How To Delete or Remove Apps On Android Device

Project 1: Developing your SMART goals

Why your fintech app needs a great loyalty system (and how to make one!)

With the Mobibi app, you can mobilise your whole team to get your business noticed