SOA architecture understanding Record (2)

why: Why use SOA to architecture?

The benefits of SOA

1. loose coupling: because the service of autonomy, there is a certain boundary packaging, interactive service call is issued by the interface. How This means that the application is not interested in service is implemented.
2. Location transparency: Consumer Services does not have relations services located.
3. reusable across heterogeneous platforms. Legacy systems can be packaged into service.
4. For testing, to parallel development, high reliability and good scalability.

Several concepts of SOA thinking about nouns: Contract, address, bonding

Contract: the contract is an agreement between two or more parties. It defines a client how to communicate with the service agreement. Technically, it is described methods of parameters and return values.

Address: Address indicates where to find such services. Address is a URL, which points to the location services.

Binding: Binding is to decide how this endpoint can be accessed. It determines how to complete the communication. For example, you expose your services, you can use SOAP over HTTP, or accessed through the TCP BINARY. Therefore, for these communication media will be created two bindings.

Explanation of services

  Proposed services actually implies two concepts, service providers and service consumers, there is a contract between the two, which is very similar to the real life of our service contracts signed, A and B units are units of service providers and consumers, both signed a service contract, the provisions of a to B to provide a service. Service is to provide some public facilities needs, through a work process can help, use, allowing users to benefit.

  All services are self-contained, logical. They are like black boxes. In short, we do not need to know the details of the inner workings of business services. For the outside world, it's just a message interactions can use a black box. For example, will give output after "payment gateway" business service get the message "Check Credit": the customer's credit or without. For the "order system", "Payment Gateway" service is a black box.

Guess you like

Origin www.cnblogs.com/floakss/p/10963161.html