With the development of network and computer technology, Web services and service-oriented architecture are emerging as technologies and architectures of distributed systems. Web service technology can integrate various loosely coupled applications, so that different operating systems, different programming languages, and different application platforms can be seamlessly connected and interoperable. The purpose of this paper is to introduce aspect-oriented thinking into Web services based on a multi-layer distributed system software architecture based on aspect services and web services. Aspect-oriented programming provides a mechanism to explicitly capture and modularize cross-cutting concerns, and uses AOP concepts to address cross-cutting concerns in web services, thereby improving the adaptability and reusability of web services. A multi-layer software application architecture based on AOP and Web services is proposed to make embedded systems easier to understand, maintain and expand. The test results show that the bandwidth is 1Gbps, and the peak throughput is 0.069MB/s, indicating that the access request can be well shunted and limited. The device upload record adopts an asynchronous method, simulating 2000 devices uploading records at the same time, and the average response time is 0.5 seconds.