[Architecture diagram] Framework analysis of a mall

  • opening

        I recently made a shopping mall system, from the requirements of the system, to the selection of the system, as well as the research and use of the framework and various technologies, I have participated in it, so I will share this system.

 

  • frame

        The frame is as follows:

 

 

  • illustrate:

 

        presentation layer

        There are two types of users, PC users and mobile users; the PC end includes the mall homepage, product categories, shopping carts, orders, product display, membership center, etc. The functions of the mobile mall are also similar, basically the same .The clients are developed separately. In the client, there is no business logic, and they are all developed with interfaces.

        SOA (Service-Oriented Architecture) business service layer

        SOA (Service Oriented Architecture): Service Oriented Architecture is a component model that connects different functional units of an application (called services) through well-defined interfaces and contracts between those services. An interface is defined in a neutral way, and it should be independent of the hardware platform, operating system, and programming language that implements the service. This enables services built in a wide variety of systems to interact in a unified and common way. The logic is all in the business layer.

        The business layer and the presentation layer communicate through the Http protocol. The service layer provides http-based services, and the presentation layer uses httpclient to call the service and pass json data. 

        service layer

        In order to improve query performance and efficiency in the service layer, a cache is added to the system, and the NOSql database is used for the cache, and the redis cluster is used here. In the service layer, a search service is also added, which is implemented by the soler. Soler also Use clusters.

        bottom layer

        The underlying database uses the mysql database cluster.

 

  • System network topology

        From the above mall framework, the system network topology is as follows:

        System network topology:

Note: The blog writing may not have a particularly high coherence, mainly to summarize some of the knowledge in the system that I think is more important. The technologies used in the system will be summarized and shared in my blog, and some have not been written yet. The technology is being conceived, and the following blogs will be written one after another.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325527193&siteId=291194637