Backend Development
PHP Tutorial
[Product Design] E-commerce design Zhihu summary, product design e-commerce summary_PHP tutorial
[Product Design] E-commerce design Zhihu summary, product design e-commerce summary_PHP tutorial
[Product Design] E-commerce design Zhihu summary, product design e-commerce summary
If you want to build a B2B2C e-commerce platform, what issues should you pay attention to when setting up background data statistics? How to design a specific statistical module?
Wang Yuping:
I think that before building a database, you need to design the requirements and processes. With the requirements in this step, you will know what data you need here; with the process, you will know what data you need here. What data can be obtained, even the data type.
For example, in supplier management, you will get the supplier’s company region, phone number, category, etc. In data statistics, you can make statistics on region and category, and then based on C’s corresponding demand recommendations, etc.
PalmWong:
It is recommended to start with business understanding:
BBC platform is first divided into three backends
Merchant Portal Platform Operation Portal Buyer Personal Portal
The parts to be counted are also three pieces:
1, from the personal perspective of consumers: personal consumption statistics
2, from the perspective of platform operation: statistics on the operation of the entire platform, statistics on the operation of merchants
3, statistics from the perspective of merchants
BBCThe mall is actually a very complex business system. Due to changes in roles and functions, there are actually a lot of data interactions. There are many exceptions in reconciliation, statistics, and authority management.
You can’t just look at Tmall’s mode and just close your eyes.
Use PHP MySql to build a Taobao mall with tens of millions of users and visits B2C website, how about it?
Dion:
System architecture is very important!
Language:
There is no problem with mainstream languages. PHP, Java, whatever.
Front-end server:
If conditions permit CDN, best. If not, be sure to ensure the load performance of the front end. Generally recommendedNginx.
Application Server:
Cluster. The front end is responsible for load balancing. For clusters, just pay attention to the problem of Session. Nothing else.
Data storage:
If the amount of data is relatively large (millions), it is no problem to use MySQL Memcached to build a cluster.
If the amount of data is large, consider NoSQL. For example, Facebook uses Cassandra, Amazon uses Dynamo .
socici:
You can be simpler and look at it from the perspective of data accessed by users
Static files, including pictures, HTM , JS, css These are data that do not change frequently. Give a separate domain such as http://static.xxxx.com by nginxManagement
The dynamic data released through the front and backend is divided into the following types:
Data read:
1.For big data that users need to query, such as orders, you can check the database of slaver
2.The data displayed on the system public page, such as some product information, rankings, etc. can be retrieved from the cache
Data written:
If it is required to take effect immediately, such as modifying user information, write it directly to the master database
Things that have low real-time requirements or have concurrency restrictions, such as posting Weibo, sending private messages, etc. Write to the queue first, then read and save asynchronously to the database
The problem of product specification design in the e-commerce platform has been thrown out. Please comment?
Product list (product name, price, shelf availability and other basic information)
For example: 1, Mobile phone, 100
Specification table (primary key, productID, specification name )
For example: 1 , 1, operator
Product specification value table (primary key, specificationID, productID, specification valueID, specification valueNAME)
For example: 1, 1, 1, 0, Telecom version
2, 1, 1, 1, mobile version
Specification inventory table (itemID, specification valueID combination, specification value NAMEcombination, inventory, price)
For example: 1, 1/0 (Operator, Telecom version) , operator /telecom version, 100, 100 Block
Problem description:
The above method can achieve multiple specifications and multiple inventories, but using an agreed specification order makes it painful for the system to count data related to different specifications in the later stage when writing a program.
And when creating a product, you must first create the product before you can create specifications. I personally refer to some large e-commerce platforms and found that product creation is completed with one submission.
Help needed:
I need to give a reasonable product design with multiple specifications, multiple prices, and multiple inventories based on my problem description, to solve my programming complexity, and at the same time ensure that I can create interactive products in the interactive design. Simple.
socici:
Product Category (typeid,type name, parentID)
Product list (product name, price, shelf availability and other basic product information, product classification)
Specification table (primary key, specification name )
Specification value table (Specification valueID, Specificationid, rule value type, specification default value)
Specification-Category association table (product categoryid, specificationid)
Product-Specification Association Table(Productid,Specificationid,Specification valueID,Specification actual value)
Inventory table (itemid,quantity,price)
How is a database similar to Taobao’s product details page stored?
1, the number of pictures and the number of introduction paragraphs for each product are not fixed , is After editing with the editor, will the entire html be stored in the database? Not realistic?
2. If stored as database fields, number of pictures and introduction paragraphs for each product The number is not fixed ,Even if you set an upper limit,, it will waste a lot of fields
3.When querying ,If the picture and introduction text are stored separately , So how do you match a certain picture with a question about introducing it when the page is displayed after querying
Liu Chuanshuang:
Overall
1. The structured information of the product is stored in the database, including name, price, inventory, attributes, etc. Of course, it is not a simple table.
2. The unstructured information of the product is saved into small files and stored in a self-developed massive small file system, including pictures and product description information.
3, product image file id needs to be stored in a database or other types of storage, and does not necessarily require multiple fields. This is a horizontal method. Generally, a picture of a product is stored as a record and expanded vertically.
4. Before saving the document, save the image first, and put the image in the document Src address is replaced with the image path in the small file system, and that’s it
In addition, storage cannot be understood as only databases and file systems. There are various types of storage, different file systems, various RDBMS, NoSqlStorage...
Zi Liu:
Actually, several colleagues have already answered, so I will add something from a historical perspective
The earliest this field was indeed placed in the database was a clob field, which stored html fragment. Moreover, at that time, this field was in the same table as the product title, price, seller ID, etc. It is conceivable how much the performance would be affected.
So this method is destined to not last long. In 2005, I separated this field into a separate table to store it. This does not require much technology. content, it relieved a lot of pressure on the database at that time, and the DBAswere very grateful to me. After 2006, Taobao began to use caching on a large scale. This field was also put into the cache, which reduced a lot of pressure on the database. (Only data that is not in the cache is read from the database, and it is put into the cache after being read). In 2007, Taobao developed a distributed file storage system TFS, so this was completely The fields are extracted from the database, along with large field information such as transaction snapshots.
Hot AI Tools
Undresser.AI Undress
AI-powered app for creating realistic nude photos
AI Clothes Remover
Online AI tool for removing clothes from photos.
Undress AI Tool
Undress images for free
Clothoff.io
AI clothes remover
AI Hentai Generator
Generate AI Hentai for free.
Hot Article
Hot Tools
Notepad++7.3.1
Easy-to-use and free code editor
SublimeText3 Chinese version
Chinese version, very easy to use
Zend Studio 13.0.1
Powerful PHP integrated development environment
Dreamweaver CS6
Visual web development tools
SublimeText3 Mac version
God-level code editing software (SublimeText3)
Hot Topics
1382
52
Understand the user experience differences between vivox100s and x100
Mar 23, 2024 pm 05:18 PM
With the continuous development of science and technology, people's requirements for communication equipment are also constantly increasing. In the market, Vivox100s and X100 are two mobile phone brands that have attracted much attention. They all have unique characteristics and each has its own advantages. This article will compare the user experience differences between these two mobile phones to help consumers better understand them. There are obvious differences in appearance design between Vivox100s and X100. Vivox100s adopts a fashionable and simple design style, with a thin and light body and comfortable hand feel; while X100 pays more attention to practicality
Why do some people think Android photography can beat Apple? The answer is so direct
Mar 25, 2024 am 09:50 AM
When discussing the camera function of Android phones, most users give it positive feedback. Compared with Apple phones, users generally believe that Android phones have better camera performance. This view is not unfounded, and the practical reasons are obvious. High-end Android phones have greater competitive advantages in terms of hardware configuration, especially camera sensors. Many high-end Android phones use the latest, top-of-the-line camera sensors, which are often more outstanding than iPhones released at the same time in terms of pixel count, aperture size, and optical zoom capabilities. This advantage enables Android phones to provide higher-quality imaging effects when taking photos and recording videos, meeting users' needs for photography and videography. Therefore, the competitive advantage of hardware configuration has become the attraction of Android phones.
Xiaomi Auto APP tops Apple's App Store free list with official sales of nearly 90,000
Apr 01, 2024 am 09:56 AM
On March 31, CNMO noticed that the Xiaomi Auto mobile application topped the Apple App Store free application rankings on March 31. It is reported that Xiaomi Auto’s official App has won the favor of the majority of users with its comprehensive functions and excellent user experience, quickly ranking first in the list. This much-anticipated Xiaomi Auto App not only realizes seamless connection of the online car purchase process, but also integrates remote vehicle control services. Users can complete a series of intelligent operations such as vehicle status inquiry and remote operation without leaving home. Especially when the new model of Xiaomi Motors SU7 is released, the App is launched simultaneously. Users can intuitively understand the configuration details of SU7 through the App and successfully complete the pre-order. Xiaomi Auto App internal design
ViewSonic debuts at ChinaJoy2024 with stunning 8K large screen
Jul 24, 2024 pm 01:33 PM
From July 26th to July 29th, the annual ChinaJoy2024 will be grandly opened at the Shanghai New International Expo Center. ViewSonic will join hands with ZOL Zhongguancun Online to create a full coverage of vision, hearing, and touch for users and game enthusiasts. A technological feast. ZOL Zhongguancun Online is an IT interactive portal that covers the entire country and is positioned to promote sales. It is a composite media that integrates product data, professional information, technology videos, and interactive marketing. Zhongguancun Online broke the dimensional wall and appeared at booth S101 of Hall E7 of ChinaJoy with the theme of "Trendy and Fun", bringing a diverse and immersive exhibition experience to audiences and industry insiders from around the world. ViewSonic Exhibition Area: Explore high-end display technology 1
What are the five elements of user experience?
Aug 26, 2022 pm 05:24 PM
Five elements of user experience: 1. User needs, what users and operators want to get from this product; 2. Scope of functions, what functions does this product have; 3. Process design, which can be divided into two major categories: interaction design and information architecture. In this part, interaction design describes "possible user behavior", and information architecture focuses on how to express information to users; 4. Prototyping design, deciding where interactive elements such as a section or button should be placed on the page; 5. Perceptual design, It is the bringing together of content, functionality and aesthetics to produce a final design that meets all objectives on other levels.
Analyzing Vue's server-side communication process: how to improve user experience
Aug 10, 2023 am 11:19 AM
Analyzing Vue's server-side communication process: How to improve user experience Introduction: With the rapid development of the Internet, communication between the client and the server has become increasingly important. As a modern JavaScript framework, Vue provides developers with a wealth of tools and technologies to implement server-side communication. This article will delve into Vue's server-side communication process and introduce some tips and best practices to improve user experience. 1. Overview of Vue server-side communication process Vue’s server-side communication process includes the following key steps
Best Plugins for php CodeIgniter: Take your website to the next level
Feb 19, 2024 pm 11:48 PM
CodeIgniter is a powerful PHP framework, but sometimes you may need additional features to extend its capabilities. Plugins can help you achieve this. They can provide a variety of functions, from improving website performance to improving security. 1.HMVC (Hierarchical Model View Controller) Hmvc plugin allows you to use layered MVC architecture in CodeIgniter. This is useful for large projects with complex business logic. Using HMVC you can organize controllers into different modules and load and unload these modules as needed. Demo code: //Add the following code in config/routes.php: $route["/module/contr
DXO: Huawei Mate60 Pro screen test score 143 has significantly improved
Mar 22, 2024 pm 06:31 PM
On March 21, CNMO noticed that DXOMARK announced the screen test results of Huawei Mate60Pro, with a score of 143 points, ranking in the middle of the global screen rankings. According to DXOMARK's review, the device's screen provides a comfortable user experience. Compared with the previous generation Huawei Mate50Pro, the latest version of the screen has significant improvements in motion and touch response and artifact management, allowing users to enjoy a better visual experience. The readability of the screen basically maintains the level of the previous generation product. Although the brightness in low-light environments is slightly insufficient, the screen of the device has good readability and accurate color rendering in most ambient light conditions. The readability is quite good especially outdoors, and the screen brightness reaches


