Design high concurrent electronics store four level to service rack

Source: Internet
Author: User
Tags generator


Spare time to develop a set of electronic store website, request to be able to face large amount of data, high concurrency. I will be the implementation of the entire process of recording, and through the blog to share with you, of course, the end will also be the electronic store site free Open source, I hope that we can make a lot of bricks.



What functional modules are we going to implement in our electronics store?






Detailed description, wait for our next chapter to say ...



First from the architectural considerations, we adopt a four-tier service-oriented architecture:






A standard four-tier architecture consists of the following four sections:



And then, from physical deployment, we use distributed deployments:



Our goal is to accompany the increase in traffic, no need to change the program, just increase the number of servers, you can achieve high concurrent purposes.






Customer:



The customer accesses our store Web application server from the browser;



Store Web applications use windows_server_appfabric technology, cache parts to change time-sensitive data, and share sessionstate



At the same time, mobile phones, WinForm programs, etc. through the WCF technology, access through the distributed Service AppFabric server to 



The distributed caching of Web applications and the AppFabric servers that provide distributed services are deployed to maximize server resource savings



The database adopts the principle of read-write separation:



1. For the product review information we put in "from Database 1", in the detailed page of the merchandise, directly from the database to 



2. For the order information we put in "from Database 2" in the Order query page, directly from the database to 



3. "From Database 1" and "from Database 2" will be synchronized to the primary database at the right time.



4. We will develop different services according to the business, and different services can use more from the database, so as to facilitate the future expansion.



The image server uses the level two domain name the form to provide the picture sharing service externally



Backstage Management personnel:



Managers access our backend application server from the browser and manage the resources of the picture server (picture portion) and the database server (data portion) through the background application.



I think so, you should understand. In (a), why the backend application accesses the business logic layer directly, and the store application needs to access the business logic layer through the service layer, because with the increase of data traffic, we can deploy the service on multiple servers according to the functional needs to ease the access pressure. There is no increase in the number of accesses in the background application.



Then consider from the project component that we created 10 projects:






app--Electronics Store Front page display



is a BS architecture project that selects the latest MVC4 framework.



bll--business logic



Business logic operations, including business processes, transactions, and so on.



dal--data Access



Database access operations, data entities, data validation, using the entity Framework.



ibll--Business Interface



The business logic layer approaches externally exposed interfaces and service contracts. such as: App Project and Shop project.



common--Common Components



Public helper methods used by the entire application.



modelingproject--Model Design



A legend for this design project, such as: schema diagram.



wcfhost--Service Host



Provide a host for the service of the electronic store foreground system, using Microsoft WCF technology.



wfactivitys--Workflow Activity Layer



Defines the activities of the workflow, using the Microsoft WF technology.



wfdesigner--Workflow Designer



The designer who implements the workflow freely, using Microsoft WPF technology.



shop--Electronics Store Background Application



is a BS architecture project that selects the latest MVC4 framework. Use the Easyui script library.



Selection



Tool selection VS2010 SP1 + SQL Server2008 + Wolf Ben code generator



Technology Selection EF + WF + WCF + MVC4 + Easyui



Resources



Windows_server_appfabric



Wolf Ben Code generator



Wen/ben@langben@com


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.