SOA and web services have been around for a long time. It is very difficult for beginners to figure out the relationship between them at the moment. After remembering several times and forgetting a few times, they decided to write it down so that they can learn it later, I will also give some tips to those who are as confused as me.
SOA (Service-Oriented Architecture) is a software architecture that provides an architecture design platform to make it more elastic. Main features: 1. business-driven, SOA is business-oriented, and service-oriented architecture should be designed; 2. Loose coupling, services are independent, self-contained, and flexible. 3. the interface is clearly defined and the interface is defined using a clear standard service description language; 4. remote calls follow open standards and protocols. Remote calls are the key technologies of distributed service calls,Program5. Low-frequency access to large data volumes. In SOA mode, message transmission uses the text mode, which results in a loss of response speed and efficiency. Therefore, a large number of communication methods are required.
Web services are used to provide functions equivalent to business services. Several key principles should be grasped during design: loose coupling, well-defined interfaces, and appropriate granularity. The Web service architecture has three roles: service providers, service agencies, and service users. That's not much to say.
Difference between SOA and Web Services: SOA is an architecture. Web services can be said to be instances based on this architecture. The relationship between them is just like the relationship between the object-oriented programming method and a Java project. SOA provides the design architecture, web services are an instance implementation designed to follow this architecture.
The connection between SOA and Web Services: currently, Web services are the best way to implement SOA, so they are often mentioned. Just like speaking of object-oriented programming and speaking of Java.
Therefore, Web services are a technical method for implementing SOA, while SOA does not have to be implemented by Web Services, and SOA can be implemented without web services; otherwise, web services are not necessarily the implementation of SOA, that is, they are not necessarily the SOA architecture.
These are my personal understandings, which may be wrong or narrow, but it is better for beginners to understand the relationship between them.