CamelBee Logo

Prompt Recipes
Copy-paste prompts that build production-ready microservices. No IDE required.

Each recipe is a complete, copy-paste prompt for a real-world microservice. Step 1: generate the scaffold via CamelBee MCP Server or Initializer — routes, tests, Docker, all passing on day one. Step 2: paste the recipe into Claude Code, Cursor, Codex, or any AI tool — get a production-ready service with your domain, your tests, and your business logic.

Browse Recipes Open Initializer

Step 1 — Generate the scaffold

Use the CamelBee Initializer UI, or tell your AI tool to call the CamelBee MCP Server (first time? configure your AI tool's MCP connection — instructions there). Pick framework, interfaces, and backends. A complete Maven project lands in your workspace — routes, tests, Docker, embedded debugger, all wired and passing. If you used the Initializer, extract the downloaded zip into an empty folder, then open your AI tool in that folder.

Step 2 — Paste the recipe

Copy a recipe and paste it into your AI tool. It reads the architecture from CLAUDE.md and .claude/ in the generated project, replaces the Order domain with your domain, implements business logic, runs all three test levels, and reports done.

💡 After generation: cd into the new project folder and open your AI assistant from there. Claude Code, Cursor, OpenCode, Codex, and Copilot all load their project rules from the working directory at launch.
Filter:
Quarkus + Native Interfaces: MCP · REST Backends: REST · JPA (PostgreSQL)
Intermediate

Product Catalog MCP Server

An AI-callable product catalog exposing three MCP tools — listProducts, searchProducts, getProduct — with every tool call audit-logged to PostgreSQL. Compiles to a native executable for serverless deployment.

What you'll build

  • 3 MCP tools callable directly by AI agents
  • Product search with category, price range, and stock filters
  • AuditLog JPA entity — every tool call persisted with userId, toolName, params, status
  • Unit + integration + black-box tests (24 total, all passing)
  • Quarkus native build — ~50ms startup, serverless-ready

Step 1 — Generate the project

Via Initializer: Set the options below, click Download, extract the zip into an empty folder, and open your AI tool in that folder:
Framework: Quarkus  ·  Interfaces: MCP REST
Backends: REST JPA  ·  Operations: List · Create · Get

Via AI tool (MCP): Open your AI tool in a new empty directory, then paste:
"Use the CamelBee MCP server to generate a Quarkus microservice called product-catalog-mcp (group io.camelbee, service productcatalog). It should expose both an MCP interface and a REST API for listing, creating, and getting products. Backends: an external REST API (list, create, and get) and PostgreSQL via JPA (list, create, and get). Then unzip the generated zip into a folder named after the artifactId, then stop and instruct me to open a fresh AI session inside that folder so the project's AI rules and commands load."
Once the AI has switched into the project folder, paste the full prompt below in the same session.

GitHub → Walkthrough →
Spring Boot Interfaces: REST Backends: REST · JPA (PostgreSQL) · Cache (Redis)
Intermediate

Currency Exchange Rate Service

A REST service that fetches live exchange rates with Redis cache-aside (60s TTL), persists every provider call to PostgreSQL, and exposes a paginated rate history endpoint. Both cache paths are visible as distinct routes in the CamelBee debugger.

What you'll build

  • Cache-aside routing: Redis hit skips provider entirely, miss fetches and writes cache
  • RateSource enum (CACHE / PROVIDER) surfaced in every response
  • Flyway migration for rate history table + paginated history endpoint
  • ISO 4217 input validation — 400 on missing or malformed currency codes
  • WireMock stubs for USD→EUR, USD→GBP, EUR→GBP + 503 error scenario

Step 1 — Generate the project

Via Initializer: Set the options below, click Download, extract the zip into an empty folder, and open your AI tool in that folder:
Framework: Spring Boot  ·  Interfaces: REST (JSON) ops: List · Get
Backends: REST (JSON) ops: Get  ·  JPA (PostgreSQL) ops: List
Redis cache-aside is implemented inline in the central route — not a formal CamelBee backend.

Via AI tool (MCP): Open your AI tool in a new empty directory, then paste:
"Use the CamelBee MCP server to generate a Spring Boot microservice called exchange-rate-service (group io.finance, service exchangerate). It needs a REST API for fetching and listing exchange rates. Backends: an external REST rate provider (get only — called on cache miss) and PostgreSQL via JPA (list only — for querying rate history). The Redis cache-aside and persistence writes are implemented as inline logic in the central route, not as formal CamelBee backend endpoints. Then unzip the generated zip into a folder named after the artifactId, then stop and instruct me to open a fresh AI session inside that folder so the project's AI rules and commands load."
Once the AI has switched into the project folder, paste the full prompt below in the same session.

Spring Boot Interfaces: REST · MCP · Kafka Backends: Kafka (AVRO) · JPA · REST · Cache (Redis)
Advanced

Loan Application Processing Service

A full async processing pipeline: REST + MCP accept submissions, Kafka drives async processing, a credit bureau REST API makes the decision via three-path content-based routing, and Redis caches every application state change.

What you'll build

  • REST + MCP interfaces accepting loan submissions simultaneously
  • Kafka consumer driving async processing (submitted → processed topic) — AVRO format with Apicurio Schema Registry
  • 3-path routing: auto-approve (low risk), auto-reject (very low score), credit bureau assessment (all other cases)
  • Cache-aside get: Redis first, JPA fallback on miss, write-through on every status change
  • WireMock stubs for credit bureau approval, high-risk, and 503 error scenarios

Step 1 — Generate the project

Via Initializer: Set the options below, click Download, extract the zip into an empty folder, and open your AI tool in that folder:
Framework: Spring Boot  ·  Interfaces: REST (JSON) ops: Create · Get · List  ·  MCP ops: Create · Get · List  ·  KAFKA (AVRO · Schema Registry) ops: Update
Backends: KAFKA (AVRO · Schema Registry) ops: Create · Update  ·  JPA (PostgreSQL) ops: Create · Get · List · Update  ·  REST (JSON) ops: Update  ·  CACHE (Redis) ops: Create · Update

Via AI tool (MCP): Open your AI tool in a new empty directory, then paste:
"Use the CamelBee MCP server to generate a Spring Boot microservice called loan-application-service (group io.fintech, service loanapplication). It needs a REST API and an MCP interface for submitting (create), getting, and listing loan applications, plus a Kafka consumer using AVRO with Apicurio Schema Registry that processes submitted events (update). Backends: a Kafka producer using AVRO with Schema Registry (create and update events), PostgreSQL via JPA (create, get, list, and update), an external REST backend for credit assessment calls (update only), and a Redis cache for create and update only — cache reads are inline in the central route, not a formal backend endpoint. Then unzip the generated zip into a folder named after the artifactId, then stop and instruct me to open a fresh AI session inside that folder so the project's AI rules and commands load."
Once the AI has switched into the project folder, paste the full prompt below in the same session.

Quarkus + Native Interface: REST Backends: JPA (PostgreSQL) · Kafka · Cache (Caffeine)
Intermediate

Order Management API

A full-CRUD order API backed by PostgreSQL, with every write event published to Kafka and hot reads served from an in-process Caffeine cache. All three CamelBee route layers are exercised by all 7 operations.

What you'll build

  • Full CRUD API — all 7 operations (list, create, batch-create, get, replace, update, delete)
  • Kafka event published on every state-changing write (CreateOrder, ReplaceOrder, UpdateOrder, DeleteOrder)
  • Caffeine cache-aside for GetOrder — cache hit skips JPA entirely
  • Flyway migration for orders + order_items tables with optimistic locking
  • Unit + integration + black-box tests for all 7 operations

Step 1 — Generate the project

Via Initializer: Set the options below, click Download, extract the zip into an empty folder, and open your AI tool in that folder:
Framework: Quarkus  ·  Interface: REST (JSON) ops: all 7
Backends: JPA (PostgreSQL) ops: all 7  ·  KAFKA (JSON) ops: Create · BatchCreate · Replace · Update · Delete  ·  CACHE (Caffeine) ops: Create · BatchCreate · Replace · Update · Delete

Via AI tool (MCP): Open your AI tool in a new empty directory, then paste:
"Use the CamelBee MCP server to generate a Quarkus microservice called order-management (group io.commerce, service ordermanagement). It needs a REST API supporting all 7 operations: list, create, batch create, get, replace, update, and delete. Backends: PostgreSQL via JPA for all 7 operations, Kafka for event publishing on all write operations (create, batch-create, replace, update, and delete), and an in-process Caffeine cache for all write operations (create, batch-create, replace, update, and delete) — cache reads for get are inline in the central route. Then unzip the generated zip into a folder named after the artifactId, then stop and instruct me to open a fresh AI session inside that folder so the project's AI rules and commands load."
Once the AI has switched into the project folder, paste the full prompt below in the same session.

Quarkus Interfaces: MQTT · REST Backends: Kafka · MongoDB
Intermediate

IoT Sensor Data Ingestion

MQTT messages from IoT sensors land in a Kafka topic and are persisted to MongoDB. A REST API lets consumers query sensor readings by device ID with time-range filtering. The canonical Camel protocol-bridging pattern.

What you'll build

  • MQTT consumer ingesting JSON sensor readings from any broker (Mosquitto)
  • Kafka publisher — each reading forwarded to sensor-readings topic
  • MongoDB persistence — readings stored with TTL index (30-day retention)
  • REST query API — list readings by deviceId with optional time-range filter
  • Integration tests using TestContainers (Mosquitto, Kafka, MongoDB)

Step 1 — Generate the project

Via Initializer: Set the options below, click Download, extract the zip into an empty folder, and open your AI tool in that folder:
Framework: Quarkus  ·  Interfaces: MQTT (JSON) ops: Create  ·  REST (JSON) ops: List · Get
Backends: KAFKA (JSON) ops: Create  ·  MONGODB ops: Create · List · Get

Via AI tool (MCP): Open your AI tool in a new empty directory, then paste:
"Use the CamelBee MCP server to generate a Quarkus microservice called sensor-ingestion (group io.iot, service sensoringestion). It should subscribe to an MQTT topic to ingest sensor readings (create) and expose a REST API for listing and getting readings. Backends: Kafka for forwarding each sensor event (create only) and MongoDB for persistence (create, list, and get). Then unzip the generated zip into a folder named after the artifactId, then stop and instruct me to open a fresh AI session inside that folder so the project's AI rules and commands load."
Once the AI has switched into the project folder, paste the full prompt below in the same session.

Spring Boot Interface: FILE (CSV) Backends: JPA (PostgreSQL) · Kafka
Intermediate

File-to-Database ETL Pipeline

CSV files dropped into an input folder are polled every 30 seconds, validated row by row, batch-inserted to PostgreSQL, and a completion event published to Kafka. Invalid rows go to a dead-letter file. Classic Apache Camel at its strongest.

What you'll build

  • File poller — picks up CSV files, moves to archive on success or error folder on failure
  • Row-level validation — invalid rows written to a dead-letter .errors file
  • Batch JPA upsert — all valid rows persisted in a single transaction
  • Kafka completion event — fileName, rowCount, errorCount published after each batch
  • Integration tests with a real CSV fixture file and TestContainers

Step 1 — Generate the project

Via Initializer: Set the options below, click Download, extract the zip into an empty folder, and open your AI tool in that folder:
Framework: Spring Boot  ·  Interface: FILE (CSVJ) ops: Create · BatchCreate
Backends: JPA (PostgreSQL) ops: Create · BatchCreate  ·  KAFKA (JSON) ops: Create

Via AI tool (MCP): Open your AI tool in a new empty directory, then paste:
"Use the CamelBee MCP server to generate a Spring Boot microservice called file-etl-pipeline (group io.etl, service fileetl). It should poll a directory for CSV files and process records individually (create) and in batches (batch-create). Backends: PostgreSQL via JPA for persistence (create and batch-create) and Kafka for publishing each ingested record (create only). Then unzip the generated zip into a folder named after the artifactId, then stop and instruct me to open a fresh AI session inside that folder so the project's AI rules and commands load."
Once the AI has switched into the project folder, paste the full prompt below in the same session.

Quarkus Interface: GraphQL Backends: REST · Cache (Redis)
Intermediate

GraphQL API with Redis Caching

A GraphQL gateway that resolves product queries through a REST backend with Redis cache-aside (5-minute TTL). Cache hit and miss are distinct Camel route paths visible in the CamelBee debugger. Mutations bypass cache and invalidate affected keys.

What you'll build

  • GraphQL queries: products (paginated + filtered), product (by ID)
  • GraphQL mutations: createProduct, updateProduct, deleteProduct
  • Redis cache-aside for product(id) — 5-minute TTL, two distinct route paths
  • Cache invalidation on every mutation — evict by productId
  • WireMock stubs for all REST backend operations

Step 1 — Generate the project

Via Initializer: Set the options below, click Download, extract the zip into an empty folder, and open your AI tool in that folder:
Framework: Quarkus  ·  Interface: GRAPHQL ops: List · Create · Get · Update · Delete
Backends: REST (JSON) ops: List · Create · Get · Update · Delete  ·  CACHE (Redis) ops: Create · Update · Delete

Via AI tool (MCP): Open your AI tool in a new empty directory, then paste:
"Use the CamelBee MCP server to generate a Quarkus microservice called product-graphql (group io.catalog, service productgraphql). It needs a GraphQL API for listing, creating, getting, updating, and deleting products. Backends: an external REST API for all operations (list, create, get, update, and delete) and a Redis cache for write operations only (create on cache miss, update after mutation, and delete on eviction) — cache reads for get are done inline in the central route. Then unzip the generated zip into a folder named after the artifactId, then stop and instruct me to open a fresh AI session inside that folder so the project's AI rules and commands load."
Once the AI has switched into the project folder, paste the full prompt below in the same session.

Spring Boot Interfaces: REST · Kafka Backends: REST · MongoDB · AWS SNS
Advanced

Event-Driven Inventory Sync

A REST API accepts inventory updates and writes to MongoDB. Every change publishes a Kafka event, and a Kafka consumer drives cross-system sync — calling a warehouse REST API and sending an SNS notification on completion or failure.

What you'll build

  • REST API for inventory CRUD — create, list, get, update, delete backed by MongoDB
  • Kafka event published on every write (CreateOrder, UpdateOrder, DeleteOrder)
  • Kafka consumer driving warehouse sync via REST API call
  • SNS notification on sync success and failure
  • WireMock for warehouse API + LocalStack for Kafka and SNS

Step 1 — Generate the project

Via Initializer: Set the options below, click Download, extract the zip into an empty folder, and open your AI tool in that folder:
Framework: Spring Boot  ·  Interfaces: REST (JSON) ops: List · Create · Get · Update · Delete  ·  KAFKA (JSON) ops: Update
Backends: REST (JSON) ops: Create  ·  MONGODB ops: List · Create · Get · Update · Delete  ·  AWSSNS (JSON) ops: Create

Via AI tool (MCP): Open your AI tool in a new empty directory, then paste:
"Use the CamelBee MCP server to generate a Spring Boot microservice called inventory-sync (group io.warehouse, service inventorysync). It needs a REST API for full inventory CRUD (list, create, get, update, delete) and a Kafka consumer for incoming stock update events (update). Backends: an external REST backend for dispatching warehouse sync calls (create only), MongoDB for all persistence operations (list, create, get, update, and delete), and AWS SNS for sync notifications (create only). Then unzip the generated zip into a folder named after the artifactId, then stop and instruct me to open a fresh AI session inside that folder so the project's AI rules and commands load."
Once the AI has switched into the project folder, paste the full prompt below in the same session.

Spring Boot Interface: SOAP Backends: REST · JPA (PostgreSQL)
Intermediate

SOAP-to-REST Modernization Bridge

Expose a WSDL-based SOAP interface for legacy clients while routing all calls to a modern REST backend. Every call is audit-logged to PostgreSQL. The canonical Apache Camel legacy-modernization pattern used by thousands of enterprises.

What you'll build

  • SOAP interface with WSDL — legacy clients connect unchanged
  • Automatic XML ↔ JSON translation at the Camel mapper layer
  • Modern REST backend receives clean JSON for all 5 operations
  • PostgreSQL audit log — every SOAP call recorded with payload, latency, and outcome
  • Integration tests: SOAP client → bridge → WireMock REST backend

Step 1 — Generate the project

Via Initializer: Set the options below, click Download, extract the zip into an empty folder, and open your AI tool in that folder:
Framework: Spring Boot  ·  Interface: SOAP ops: List · Create · Get · Update · Delete
Backends: REST (JSON) ops: List · Create · Get · Update · Delete  ·  JPA (PostgreSQL) ops: Create

Via AI tool (MCP): Open your AI tool in a new empty directory, then paste:
"Use the CamelBee MCP server to generate a Spring Boot microservice called customer-soap-bridge (group io.legacy, service customersoapbridge). It exposes a SOAP endpoint for listing, creating, getting, updating, and deleting customers. Backends: an external REST API for all operations (list, create, get, update, and delete) and PostgreSQL via JPA for audit-logging each SOAP call (create only). Then unzip the generated zip into a folder named after the artifactId, then stop and instruct me to open a fresh AI session inside that folder so the project's AI rules and commands load."
Once the AI has switched into the project folder, paste the full prompt below in the same session.

Spring Boot Interfaces: AWS S3 · REST Backends: REST · JPA (PostgreSQL) · AWS SNS
Intermediate

S3 Document Processing Pipeline

Documents uploaded to an S3 bucket are automatically ingested — a REST analysis service extracts metadata, results are persisted to PostgreSQL, and an SNS notification is sent on completion or failure. A REST API exposes the processing history.

What you'll build

  • S3 consumer polling for new objects — processes each file exactly once
  • REST analysis backend — extracts pageCount, language, documentType
  • PostgreSQL persistence — full processing record per document
  • SNS notification on both success (COMPLETED) and failure (FAILED)
  • REST query API — paginated list and get by document ID

Step 1 — Generate the project

Via Initializer: Set the options below, click Download, extract the zip into an empty folder, and open your AI tool in that folder:
Framework: Spring Boot  ·  Interfaces: AWSS3 (JSON) ops: Create  ·  REST (JSON) ops: List · Get
Backends: REST (JSON) ops: Create  ·  JPA (PostgreSQL) ops: Create · List · Get  ·  AWSSNS (JSON) ops: Create
Status updates during processing are implemented as inline JPA calls, not a formal Update backend endpoint.

Via AI tool (MCP): Open your AI tool in a new empty directory, then paste:
"Use the CamelBee MCP server to generate a Spring Boot microservice called document-pipeline (group io.docs, service documentpipeline). It should poll an S3 bucket for new documents (create) and expose a REST API for listing and getting them. Backends: an external REST processor for each new document (create only), PostgreSQL via JPA for persistence and history (create, list, and get — status update writes are inline logic), and AWS SNS for upload notifications (create only). Then unzip the generated zip into a folder named after the artifactId, then stop and instruct me to open a fresh AI session inside that folder so the project's AI rules and commands load."
Once the AI has switched into the project folder, paste the full prompt below in the same session.

Quarkus Interfaces: WebSocket · REST Backends: Kafka · Cache (Caffeine)
Advanced

Real-time WebSocket Notification Hub

WebSocket clients subscribe to notification topics and receive messages in real time. A REST API publishes notifications that fan out to subscribers instantly, buffer to Kafka for durability, and cache the latest state per topic for late-joining clients.

What you'll build

  • WebSocket endpoint — clients subscribe by topic, receive push notifications instantly
  • REST publish API — POST a notification, delivered to all subscribers in real time
  • Kafka producer — every notification durably buffered to a topic
  • Caffeine cache — latest notification per topic served to late-joining clients
  • REST management API — list notification history and get by ID

Step 1 — Generate the project

Via Initializer: Set the options below, click Download, extract the zip into an empty folder, and open your AI tool in that folder:
Framework: Quarkus  ·  Interfaces: WEBSOCKET (JSON) ops: Create  ·  REST (JSON) ops: List · Create · Get
Backends: KAFKA (JSON) ops: Create  ·  CACHE (Caffeine) ops: Create  ·  MOCK ops: List · Get
The Mock backend stubs for List and Get are replaced with inline Caffeine reads during domain transformation.

Via AI tool (MCP): Open your AI tool in a new empty directory, then paste:
"Use the CamelBee MCP server to generate a Quarkus microservice called notification-hub (group io.notify, service notificationhub). It accepts notifications over WebSocket and exposes a REST API for listing, sending, and getting notifications. Backends: Kafka for durable event buffering (create only), an in-process Caffeine cache for storing the latest notification per topic (create only), and a Mock backend for the list and get query stubs — these will be replaced with inline Caffeine reads during domain transformation. Then unzip the generated zip into a folder named after the artifactId, then stop and instruct me to open a fresh AI session inside that folder so the project's AI rules and commands load."
Once the AI has switched into the project folder, paste the full prompt below in the same session.

Quarkus + Native Interface: gRPC Backends: JPA (PostgreSQL) · Cache (Caffeine)
Intermediate

gRPC Microservice with JPA and Caching

A high-performance gRPC service for user profile management backed by PostgreSQL and Caffeine cache. All 7 Protobuf operations compile to a native executable for sub-50ms startup — ideal for low-latency inter-service communication.

What you'll build

  • Full gRPC service from .proto definition — all 7 operations
  • PostgreSQL persistence via JPA for all write operations
  • Caffeine cache-aside for GetUserProfile — cache hit skips DB entirely
  • Flyway migration for user_profiles table
  • Quarkus native build — ~50ms startup, ideal for microservice mesh

Step 1 — Generate the project

Via Initializer: Set the options below, click Download, extract the zip into an empty folder, and open your AI tool in that folder:
Framework: Quarkus  ·  Interface: GRPC ops: all 7
Backends: JPA (PostgreSQL) ops: all 7  ·  CACHE (Caffeine) ops: Create · BatchCreate · Replace · Update · Delete
Cache reads for list and get are inline in the central route — not formal Cache backend endpoints.

Via AI tool (MCP): Open your AI tool in a new empty directory, then paste:
"Use the CamelBee MCP server to generate a Quarkus microservice called user-profile-grpc (group io.identity, service userprofilegrpc). It should expose a gRPC service supporting all 7 operations for user profiles. Backends: PostgreSQL via JPA for all 7 operations and an in-process Caffeine cache for all write operations (create, batch-create, replace, update, and delete) — cache reads for get are done inline in the central route, not as a formal cache backend endpoint. Then unzip the generated zip into a folder named after the artifactId, then stop and instruct me to open a fresh AI session inside that folder so the project's AI rules and commands load."
Once the AI has switched into the project folder, paste the full prompt below in the same session.

Spring Boot Interface: RabbitMQ Backends: REST · JPA (PostgreSQL)
Intermediate

RabbitMQ Work Queue Processor

A durable work-queue consumer that pulls tasks from RabbitMQ with manual acknowledgement, processes each through a REST API, and persists the outcome to PostgreSQL. Failed tasks are requeued with exponential backoff via a dead-letter exchange.

What you'll build

  • RabbitMQ consumer with manual ack — no message lost on crash
  • Dead-letter exchange + retry queue with 3-attempt exponential backoff
  • REST task-processor backend called for each work item
  • PostgreSQL audit trail — every attempt recorded with status and latency
  • Integration tests with TestContainers RabbitMQ + WireMock

Step 1 — Generate the project

Via Initializer: Set the options below, click Download, extract the zip into an empty folder, and open your AI tool in that folder:
Framework: Spring Boot  ·  Interface: RABBITMQ (JSON) ops: Create · Update
Backends: REST (JSON) ops: Create  ·  JPA (PostgreSQL) ops: Create · Update

Via AI tool (MCP): Open your AI tool in a new empty directory, then paste:
"Use the CamelBee MCP server to generate a Spring Boot microservice called task-queue-processor (group io.tasks, service taskqueueprocessor). It consumes new tasks (create) and updated/retry tasks (update) from a RabbitMQ queue. Backends: an external REST API for dispatching tasks to the processor (create only) and PostgreSQL via JPA for persisting task state and attempt logs (create and update). Then unzip the generated zip into a folder named after the artifactId, then stop and instruct me to open a fresh AI session inside that folder so the project's AI rules and commands load."
Once the AI has switched into the project folder, paste the full prompt below in the same session.

Spring Boot Interfaces: JMS · REST Backends: REST · JPA (PostgreSQL) · AWS SNS
Intermediate

JMS Trade Settlement Bridge

Consume trade events from an enterprise JMS queue, route them to a downstream settlement REST API, audit-log every trade to PostgreSQL, and fan out completion notifications via AWS SNS. A REST query API exposes the audit log for compliance reporting.

What you'll build

  • JMS consumer for incoming trade events (new trade + trade update)
  • REST settlement caller — invokes downstream settlement system per trade
  • JPA audit log with status, settlement reference, and timestamps
  • AWS SNS notification fan-out on every settled or failed trade
  • REST query endpoints to list/get audit records for compliance

Step 1 — Generate the project

Via Initializer: Set the options below, click Download, extract the zip into an empty folder, and open your AI tool in that folder:
Framework: Spring Boot  ·  Interfaces: JMS (JSON) ops Create · Update, REST (JSON) ops List · Get
Backends: REST (JSON) ops Create · Update, JPA (PostgreSQL) ops Create · Update · List · Get, AWS SNS (JSON) ops Create · Update

Via AI tool (MCP): Open your AI tool in a new empty directory, then paste:
"Use the CamelBee MCP server to generate a Spring Boot microservice called trade-settlement-bridge (group io.finance, service tradesettlement). It needs a JMS consumer for new and updated trade events, and a REST API for listing and getting audit records. Backends: an external REST settlement system (create and update), PostgreSQL via JPA (create, update, list, and get for audit), and AWS SNS for trade-completed notifications (create and update). Then unzip the generated zip into a folder named after the artifactId, then stop and instruct me to open a fresh AI session inside that folder so the project's AI rules and commands load."
Once the AI has switched into the project folder, paste the full prompt below in the same session.

Quarkus + Native Interfaces: AWS SQS · REST Backends: AWS DynamoDB · AWS SNS · REST
Advanced

AWS-Native Serverless Event Router

Poll incoming events from an SQS queue, persist routing state to DynamoDB, fan out to downstream consumers via SNS, and invoke an external REST API for enrichment. A REST query API exposes routing decisions. Compiles to a native executable for sub-100ms cold-start on AWS Fargate or Lambda.

What you'll build

  • SQS consumer for incoming routing events (with visibility-timeout based retries)
  • DynamoDB state store keyed by eventId — partition-friendly, supports millions of events/day
  • REST enrichment caller per event (adds metadata from a downstream service)
  • SNS fan-out to multiple subscriber topics based on routing rules
  • Quarkus native build — ~70ms startup, fits a 256 MB Lambda comfortably

Step 1 — Generate the project

Via Initializer: Set the options below, click Download, extract the zip into an empty folder, and open your AI tool in that folder:
Framework: Quarkus  ·  Interfaces: AWS SQS (JSON) ops Create · Update, REST (JSON) ops List · Get
Backends: AWS DynamoDB ops Create · Update · List · Get, AWS SNS (JSON) ops Create · Update, REST (JSON) ops Create · Update

Via AI tool (MCP): Open your AI tool in a new empty directory, then paste:
"Use the CamelBee MCP server to generate a Quarkus microservice called aws-event-router (group io.cloud, service eventrouter). It needs an AWS SQS consumer for incoming events (create and update) and a REST API for listing and getting routing decisions. Backends: AWS DynamoDB for state (create, update, list, and get), AWS SNS for fan-out notifications (create and update), and an external REST enrichment API (create and update). Then unzip the generated zip into a folder named after the artifactId, then stop and instruct me to open a fresh AI session inside that folder so the project's AI rules and commands load."
Once the AI has switched into the project folder, paste the full prompt below in the same session.

Quarkus Interfaces: Kafka (AVRO + Schema Registry) · REST Backends: Cassandra · AWS S3
Advanced

Cassandra Timeseries Metrics Ingest

Consume schema-registered metric events from Kafka, write hot timeseries data to Cassandra (partition-per-day pattern), and archive raw payloads to S3 for cold storage and replay. A REST query API exposes recent metrics with time-range filters.

What you'll build

  • Kafka AVRO consumer wired to Apicurio Schema Registry for schema evolution
  • Cassandra ingest with partition key (metricName + dayBucket) — millions of writes/day
  • S3 cold-archive writer batching 5-minute windows as Parquet-friendly JSONL
  • REST query API with time-range scans (last N hours, downsampled if N > 24h)
  • End-to-end black-box test using Testcontainers Kafka + Cassandra + LocalStack S3

Step 1 — Generate the project

Via Initializer: Set the options below, click Download, extract the zip into an empty folder, and open your AI tool in that folder:
Framework: Quarkus  ·  Interfaces: Kafka (AVRO + SchemaRegistry) ops Create, REST (JSON) ops List · Get
Backends: Cassandra ops Create · List · Get, AWS S3 (JSON) ops Create

Via AI tool (MCP): Open your AI tool in a new empty directory, then paste:
"Use the CamelBee MCP server to generate a Quarkus microservice called metrics-ingest (group io.observability, service metricsingest). It needs a Kafka consumer using AVRO with Apicurio Schema Registry for incoming metric events (create) and a REST API for listing and getting recent metrics. Backends: Cassandra for hot timeseries storage (create, list, and get) and AWS S3 for cold archival (create only). Then unzip the generated zip into a folder named after the artifactId, then stop and instruct me to open a fresh AI session inside that folder so the project's AI rules and commands load."
Once the AI has switched into the project folder, paste the full prompt below in the same session.

Spring Boot Interfaces: AMQP · REST Backends: AMQP · REST · JPA (PostgreSQL)
Intermediate

AMQP Enterprise Messaging Hub

Bridge two AMQP-based systems with content-based routing. Receive messages from an inbound AMQP queue, enrich each one with metadata from a downstream REST service, persist the routing decision to PostgreSQL, and forward to a destination AMQP queue. A REST API exposes the routing audit log.

What you'll build

  • AMQP consumer with prefetch tuning and manual ack
  • Content-based router using message headers + REST enrichment
  • AMQP producer that publishes to one of N destination queues based on routing rules
  • JPA audit log of every routed message with source, destination, and decision reason
  • REST query API to list and inspect audit records

Step 1 — Generate the project

Via Initializer: Set the options below, click Download, extract the zip into an empty folder, and open your AI tool in that folder:
Framework: Spring Boot  ·  Interfaces: AMQP (JSON) ops Create · Update, REST (JSON) ops List · Get
Backends: AMQP (JSON) ops Create · Update, REST (JSON) ops Create · Update, JPA (PostgreSQL) ops Create · Update · List · Get

Via AI tool (MCP): Open your AI tool in a new empty directory, then paste:
"Use the CamelBee MCP server to generate a Spring Boot microservice called amqp-messaging-hub (group io.enterprise, service amqphub). It needs an AMQP consumer for incoming messages (create and update) and a REST API for listing and getting audit records. Backends: an AMQP producer for forwarded messages (create and update), an external REST enrichment API (create and update), and PostgreSQL via JPA for audit logging (create, update, list, and get). Then unzip the generated zip into a folder named after the artifactId, then stop and instruct me to open a fresh AI session inside that folder so the project's AI rules and commands load."
Once the AI has switched into the project folder, paste the full prompt below in the same session.

Spring Boot Interfaces: SQL (PostgreSQL polling) Backends: REST · Cache (Caffeine)
Beginner

SQL-Poll API Gateway

A polling bridge between a legacy database and a modern API. Detect new rows in a PostgreSQL outbox table on a configurable interval, deduplicate via an in-process Caffeine cache, then forward each row to a downstream REST API. Demonstrates SQL-as-source (polling), not SQL-as-store.

What you'll build

  • SQL polling consumer on a PostgreSQL outbox table — every N seconds
  • Caffeine in-process dedupe by messageId (10-minute TTL) — prevents replay storms
  • REST forwarder calling the downstream API with retry + dead-letter
  • Mark-as-processed step (UPDATE outbox SET status='SENT') to prevent re-polling
  • Health-check counters: rows polled, rows forwarded, dupes skipped, failures

Step 1 — Generate the project

Via Initializer: Set the options below, click Download, extract the zip into an empty folder, and open your AI tool in that folder:
Framework: Spring Boot  ·  Interfaces: SQL (PostgreSQL polling, JSON) ops Create
Backends: REST (JSON) ops Create, Cache (Caffeine) ops Create

Via AI tool (MCP): Open your AI tool in a new empty directory, then paste:
"Use the CamelBee MCP server to generate a Spring Boot microservice called outbox-gateway (group io.integration, service outboxgateway). It should poll a PostgreSQL outbox table (create — each new row triggers a route). Backends: an external REST API for forwarding (create only) and a Caffeine in-process cache for idempotency dedupe (create only). Then unzip the generated zip into a folder named after the artifactId, then stop and instruct me to open a fresh AI session inside that folder so the project's AI rules and commands load."
Once the AI has switched into the project folder, paste the full prompt below in the same session.

Quarkus Interfaces: MongoDB (polling) · REST Backends: JPA (PostgreSQL) · Kafka
Advanced

MongoDB Change Watcher with Relational Mirror

Poll a MongoDB collection for new and updated documents, mirror them to a PostgreSQL table for relational queries, and publish each change to a Kafka topic so other services can subscribe. A REST API exposes the mirrored data with paginated queries that the original Mongo collection can't serve efficiently.

What you'll build

  • MongoDB collection-polling consumer using a high-water-mark cursor on _id or updatedAt
  • Domain-to-relational mapper that flattens nested Mongo documents into JPA-managed tables
  • Kafka publisher emitting a CDC-style change event per write or update
  • REST query API with rich filters (status, date range, tenant) backed by PostgreSQL indexes
  • Resumable from last-processed _id after restarts — no missed updates

Step 1 — Generate the project

Via Initializer: Set the options below, click Download, extract the zip into an empty folder, and open your AI tool in that folder:
Framework: Quarkus  ·  Interfaces: MongoDB (JSON polling) ops Create · Update, REST (JSON) ops List · Get
Backends: JPA (PostgreSQL) ops Create · Update · List · Get, Kafka (AVRO) ops Create · Update

Via AI tool (MCP): Open your AI tool in a new empty directory, then paste:
"Use the CamelBee MCP server to generate a Quarkus microservice called mongo-mirror (group io.data, service mongomirror). It should poll a MongoDB collection for new and updated documents (create and update) and expose a REST API for listing and getting mirrored records. Backends: PostgreSQL via JPA as the relational mirror (create, update, list, and get) and Kafka for CDC-style change events (create and update). Then unzip the generated zip into a folder named after the artifactId, then stop and instruct me to open a fresh AI session inside that folder so the project's AI rules and commands load."
Once the AI has switched into the project folder, paste the full prompt below in the same session.

More Recipes Coming

Have a use case you'd like to see as a recipe? Open an issue on GitHub — describe your domain, interfaces, and backends and we'll add it to the list.

Request a Recipe → Follow on Medium →