π― Educational Java Project demonstrating 5 async polling strategies for long-running operations
β¨ Key Features
- Java 24 with cutting-edge preview features (primitive patterns, text blocks, exception pattern matching)
- Google Veo 3 fast preview model integration ($0.40/sec, ~$3.20 per 8-second video)
- 5 comprehensive async polling strategies: SelfScheduling, FixedRate, VirtualThread, Reactive
- Multiple HTTP client approaches: RestClient, HttpClient, WebClient
- Interactive demo with multi-line prompt support and file loading
- Comprehensive test suite (69+ tests) with proper cost protection
- Enterprise-grade patterns: error handling, timeouts, resource cleanup, validation
π Quick Start
# Clone the repository
git clone https://github.com/kousen/VeoJava.git
cd VeoJava
# Set your API key
export GOOGLEAI_API_KEY="your-api-key-here"
# Run the interactive demo (lightweight)
./gradlew run
# Or run the full Spring Boot application
./gradlew bootRun
# Run the comprehensive test suite
./gradlew testπ Educational Value
Perfect for learning modern Java async patterns, from naive busy-waiting to enterprise-grade solutions using virtual threads, reactive streams, and scheduled executors.
π§ Technical Highlights
- Gradle toolchain for Java 24 with automatic preview feature handling
- Modern Java records, sealed interfaces, pattern matching
- Spring Boot 3.5+ with proper async endpoint configuration
- Real-world API integration with redirect handling and buffer management
- Comprehensive documentation and tutorial materials
Ready for production use and educational purposes! π
π Documentation
- README.md - Complete setup and usage guide
- MODERN_JAVA_FEATURES.md - Java 24 features showcase
- CLAUDE.md - Development context and implementation decisions