Skip to content

This is a project for demonstrating the second-killing activity for e-commerce shop.

Notifications You must be signed in to change notification settings

ousui/demo-gift

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a project for demonstrating the second-killing activity for e-commerce shop.

It is based on Spring Boot, and making use of redis for the persistence.

##1. install redis wget http://download.redis.io/releases/redis-3.0.3.tar.gz
tar xzf redis-3.0.3.tar.gz
cd redis-3.0.3
make
src/redis-server
src/redis-cli

##2. install wrk git clone https://github.com/wg/wrk.git
cd wrk
make

##3. run demo git clone https://github.com/pizhigang/demo-gift.git
cd demo-gift
mvn clean package
java -jar target/demo-1.0-SNAPSHOT.jar --redis.ip=localhost --redis.port=6379 --gift.count=10000

##4. load test #This runs a benchmark for 10 seconds, using 4 threads, and keeping 500 HTTP connections open.
wrk -t4 -c500 -d10s http://localhost:8080/gift/

About

This is a project for demonstrating the second-killing activity for e-commerce shop.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 97.1%
  • HTML 2.9%