Skip to content

Hoaru/Black-Friday-Flash-Sale-Website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Black-Friday-Flash-Sale

During the Black Friday, some on-line shopping website would like to attract customers by selling some products at lower prices. For example, the normal price of an iPhone 14 is $799, and some websites would like to sell 10 iPhone 14 for only $499. At that point, it would lead to a problem that a large amount of purchasing request which will bring the server great pressure. To solve this problem, I develope a website to solve this problem. According to the test result from Apache JMeter, the throughput increased from 560/h to 3600/h after optimization through AJAX, Redis RabbitMQ.

Programming Language: HTML, JavaScript/CSS, Lua, Java

Tools & Framework: SpringBoot, MyBatis-Plus, MySQL, Docker, Redis, RabbitMQ, AJAX, Apache JMeter

  • Developed a website for e-commerce companies to conduct limited-time sales events during Black Friday.
  • Built backend with Java and frontend with HTML, CSS, and Lua in a Spring Boot environment.
  • Created the database with MySQL to store the users’ information and used MyBatis-Plus to simplify the operation.
  • Utilized AJAX to update web pages dynamically to improve data transmission efficiency.
  • Deployed Redis with Docker in a Linux environment to decrease access to the database.
  • Implemented RabbitMQ for order serialization and captcha for order placement security to prevent scripts and scalpers.
  • Increased throughput from 560/h to 3600/h according to the Apache JMeter pressure tests.

image

IMG_01_Log in

image

IMG_02_Goods list

image

IMG_03_Goods detail(Flash End)

image

IMG_04_Goods detail(Flash Unstart)

image

IMG_05_Goods detail(Flash Ongoing)

image

IMG_06_Goods detail(Wrong Captcha)

image

IMG_07_Goods detail(Flash succees)

image

IMG_08_Orders detail

image

IMG_09_Database

image

IMG_10_Pressure test report

image

IMG_11_Redis manager

image

IMG_12_Redis manager(orders detail)