#!/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!"