Skip to content

VeoJava v1.0: Java 24 Async Patterns with Google Veo 3 Integration

Latest

Choose a tag to compare

@kousen kousen released this 02 Aug 17:42
· 7 commits to main since this release

🎯 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