This commit is contained in:
zhoujia
2025-10-24 15:51:46 +08:00
commit 057a095596
28 changed files with 17576 additions and 0 deletions

42
test-simple.sh Normal file
View File

@ -0,0 +1,42 @@
#!/bin/bash
echo "Starting Redis Stream Demo Test..."
echo ""
echo "1. Starting Spring Boot Application..."
mvn spring-boot:run &
APP_PID=$!
echo ""
echo "Waiting for application to start..."
sleep 10
echo ""
echo "2. Testing Manual Ack Consumer with 100 messages..."
curl -X POST "http://localhost:8080/api/stream/send-batch?count=100"
echo ""
echo "Waiting for messages to be sent..."
sleep 3
echo ""
echo "3. Processing messages with Manual Ack..."
curl -X POST "http://localhost:8080/api/stream/consume-manual?count=100"
echo ""
echo "Waiting for processing..."
sleep 5
echo ""
echo "4. Checking Stream Info..."
curl http://localhost:8080/api/stream/info
echo ""
echo "5. Testing completed! Check the application logs for details."
echo "Press any key to close the application..."
read -n 1
echo ""
echo "Stopping application..."
kill $APP_PID
echo "Test completed!"