Design and implementation of e-commerce website (iii): Four subsystems, login-accounts-front-end

Source: Internet
Author: User

1. Login System
function: Responds to a user's logon request.
Session,redis Store session data with cookies.
Logon service, in response to requests in HTTP or HTTPS format.
    
specific practices, you can refer to the boss approach.

The above-mentioned approach has 2 objectives:
A. Log in to the system, which can be reused for multiple systems of a project, as well as other future projects.
B.cookie implementation session, rather than Java comes with the session, easier to do distributed deployment and access, but also convenient cross-system single sign-on.

2. Accounting system
functions: Account opening, enquiry, trading (need to freeze the account and other functions).
The difference: The accounting system is related to money, and the user system is related to people. A person can have multiple accounts.
Reference: Continue to learn the boss's approach. Did not consider the serious e-commerce website, also did not consider the account and user system separate.

Service: Similar to the login system, the accounting system should be taken out separately, a project within a number of sub-projects, multiple projects can be reused.
initially, only to do the basic common functions, the latter can be completed separately to improve the accounting system.

implementation idea: WebService, the internal call introduces the jar package, just like calling a normal API.
problem: Webserbice provides a service interface that can be accessed directly via HTTP. I feel that the internal system uses webservice, the code will be very clear. But to others, others will not necessarily use Java, using your jar package, directly with HTTP more general.


3. User front-end system
Features: Display and query products, add shopping cart, generate orders, personal center (information, delivery address), recharge and payment.
Key concepts: commodities, shopping carts, orders, personal data, funds


4. Backend Management system
functions: Commodity management, order management, user management, account management.

product Management, the content is created.
and the other, only do query and audit and other management operations, temporarily do not create the content of the function.

Technical belief: Reuse, service, standardization, readable, maintainable, commercial value ~

Design and implementation of e-commerce website (iii): Four subsystems, login-accounts-front-end

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.