What you'll learn: how to turn the module's decisions (placement, identity, boundary reliability) into one short design note a customer can approve, and when a Java and Spring AI service beats a Python one.
At a glance
Figure 1. The integration the note describes
How to read this: draw this first; the warning-coloured store is in memory only today.
- The note records decisions, owners and open questions, not code.
- Spring AI fits a feature inside a Spring Boot service you already run.
- Python fits work that needs its tooling or its own releases.
Scenario
Composite scenario, not a real company. Lumen Industrial Supply, the fictional distributor, agrees to a pilot. The security lead wants one document first: where the service sits, how identity arrives, what happens on failure, what is unproven. The quote team asks why it is not a Spring AI feature. Numbers are illustrative.
What you will be able to do
- Fill the ten-section integration design note.
- Mark each statement as evidence or an open question.
- Use a decision tree to choose between Python and Spring AI.
Prerequisites
Where the Python service sits, Passing identity, Timeouts, retries, idempotency and Spring AI overview.
Core ideas
The note, section by section
Each section points to evidence: the contract cites /openapi.json, identity and reliability cite the last two lessons' tests, failure behaviour a caller test, observability a sample log line. No evidence: open question.
A template
INTEGRATION DESIGN NOTE: <service name>, <date>, <author>
1 Purpose and scope: <use case; callers; out of scope>
2 Placement: <A direct | B via service | C via service>; reason: <one sentence>
3 Contract: <OpenAPI file and version>; error shape: <fields>
4 Identity and tenancy: <who verifies the token, where; role to action map; tenant source>
5 Boundary reliability: <deadline per layer; retry owner; key rule; sync or async and why>
6 Data and egress: <what leaves the estate; to which provider; what is not sent>
7 Failure behaviour: <per caller: what the user sees when the service is down>
8 Observability: <trace id; fields logged; fields never logged>
9 Open questions: <question | owner | date>
10 Decision requested: <approval | approver | date>
When Java and Spring AI win
Figure 2. Choosing the stack
How to read this: Java wins only when all three answers point inward.
As of 2026-11-02 the Spring AI reference lists a portable API over several model providers, tool calling, mapping of model output to Java objects, retrieval and memory support, observability and MCP integration, and shows version 2.0.2 as current.