codefarm
HomeRoadmapsGuidesQuizzesMentorshipWhiteboardEbooksCodeSmash
Learn
RoadmapsQuizzesBlogsVideosGuides
Simulators
Why API GatewayWhy Load BalancerWhy Circuit BreakerKafka Message FlowKafka Consumer LagKafka RebalanceRate LimitersUptime SLALatency SimulatorCachingConsistent Hashing
Tools
UUID GeneratorDate & Time ToolsJWT DecoderText FormatterMind MapFun PuzzlesKids Learning
Profile
Back to Spring AI
🛡️
Phase 8

AI Security, Resilience & Multimodal

Real deployments don't get a well-behaved model or a healthy provider for free — prompt injection defense, timeouts and circuit breakers, and the vision, image, and audio APIs beyond plain chat.

1

AI Security: Prompt Injection & Output Validation

Three real attacks against the support agent in one sprint — a system-prompt extraction attempt, a poisoned policy document, and a poisoned tool result — and the defenses that actually hold up against each.

spring-aiprompt-injectionsecurity
2

Resilience Patterns: Timeouts, Retries & Circuit Breakers

A provider outage during peak volume takes down more than the support bot — it exhausts the thread pool and drags down the whole app. Timeouts, Resilience4j, and a fallback that actually keeps the app up.

spring-airesilience4jtimeout
3

Multimodal: Vision & Document Understanding

Mobile check deposit and transaction-dispute screenshots — giving the support agent eyes with Spring AI's Media API, combined with the structured output and injection-defense lessons already built into this roadmap.

spring-aimultimodalvision
4

Multimodal: Image Generation & Audio

A voice support line that reuses the entire existing chat pipeline unchanged — transcription in, the same SupportChatService in the middle, speech synthesis out — plus image generation for auto-illustrated reports.

spring-aimultimodalimagemodel
codefarm

Learn backend engineering with clear roadmaps, practical tools, and interactive quizzes. From zero to production-ready.

Learn

  • Roadmaps
  • Guides
  • Blogs
  • Videos
  • Ebooks

Labs

  • Simulators
  • Quizzes
  • Whiteboard
  • JWT Decoder
  • UUID Generator
  • Toolbox

Simulators

  • Uptime SLA
  • Rate Limiters
  • Kafka Message Flow
  • Kafka Consumer Lag
  • Kafka Rebalance

Community

  • Cohorts
  • Testimonials
  • About
  • Contact

Legal

  • Terms & Conditions
  • Privacy Policy
  • Refund & Cancellation