7 Deployment View¶
7.1 Infrastructure Level 1¶
Two environments: the developer machine (7.1.1), and the Google Cloud
Run deployment in europe-west6 (7.1.2);
its table lists each element — the backend, docling-serve, the public website on Firebase Hosting,
the API gateway, the cloud resources of the async intake, and the docs site on GitHub Pages beside
the project — with its status. The decisions are ADR-0006 (docs/adr/adr-0006-services-on-google-cloud.md),
ADR-0008 (docs/adr/adr-0008-google-sign-in-and-backend-on-cloud-run.md),
ADR-0009 (docs/adr/adr-0009-async-intake-pubsub-bucket-firestore.md) and
ADR-0010 (docs/adr/adr-0010-api-gateway-and-api-contract.md), which record the reasons for them; they
are not repeated here. Every infrastructure dependency and its on-premise equivalent is in
7.1.3; the product has no
single target environment, each installation chooses its own (7.1.4).
7.1.1 Local — one machine¶
No cloud credentials are needed for the build. Every Docker port is bound to 127.0.0.1 only;
the defaults are the stubs, and a profile or property switches each adapter to its real service.
The build needs none of the containers below: the stubs are the default, and the tests that need
the key or Docker run as separate tasks (8.4).
flowchart LR
subgraph dev["Developer machine"]
be["Backend<br/>JVM"]
subgraph docker["Docker Compose"]
dl["docling-serve"]
ps["pubsub-emulator"]
gcs["fake-gcs-server"]
init["init-emulators"]
pg[("postgres<br/>PostgreSQL + pgvector")]
end
end
mistral["Mistral API<br/>[External system]"]
vertex["Vertex AI<br/>[External system]"]
be -- "HTTP" --> dl
be -- "HTTPS" --> mistral
be -- "HTTPS" --> vertex
be -- "publish" --> ps
be -- "PDF" --> gcs
be -- "JDBC" --> pg
ps -- "push" --> be
init --> ps
init --> gcs
classDef person fill:#ffe8b0,stroke:#9a6b00,color:#000
classDef built fill:#b7e4c7,stroke:#2d6a4f,color:#000
classDef planned fill:#c6dcff,stroke:#1168bd,stroke-dasharray:4 3,color:#000
classDef external fill:#e6e6e6,stroke:#6b6b6b,color:#000
class be,dl,ps,gcs,init,pg built
class mistral,vertex external
style dev fill:none,stroke:#666
style docker fill:none,stroke:#666
| Colour | Meaning |
|---|---|
| green | built |
| blue, dashed border; dotted arrows | planned |
| grey | external service |
| Element | Runs | Configuration and quality / performance features | Status |
|---|---|---|---|
| Backend (JVM) | all eight modules of 5.2.1 — cases, consumer, extraction, intake, kernel, signin, webapp, and mcp under the mcp profile — with the web app and the endpoints of 5.1.1 |
./gradlew bootRun; by default the converter, the model provider and the case's queue and stores are the stubs, and no queue is configured (8.13) — nothing leaves the process, and an upload converts in its own call |
built |
docling-serve |
document conversion | from the Compose file (compose.yaml), pinned to one image version and its sha256 digest; the version matches the docling-java client and the docling smoke test, and the build fails on an image pinned by tag alone, here or in the Cloud Run service. Port 5001, published on the loopback interface only: the contract goes from the application to this container and nowhere else, and nothing else on the network reaches the converter. Reached with the converter selection set to docling, over HTTP at localhost:5001, the converter's base address (8.13). The Cloud Run service of ADR-0006 (7.1.2) is the other allowed endpoint: IAM-only, reached with the converter's Google ID-token authentication switched on, never unauthenticated. The first conversion after a start loads Docling's layout, table and OCR models and is slow |
built |
pubsub-emulator |
the queue | port 8085; used under the cases-local profile (spec 264 (docs/specs/264-google-case-adapters.md)); pushes back to the backend on port 8080; keeps nothing across a restart |
built |
fake-gcs-server |
the document store | port 4443 (spec 264); cases-local profile; keeps nothing across a restart |
built |
postgres |
the case database: the case, the case engine's tables, the outbox (8.3) | PostgreSQL 18 with pgvector, pinned by tag and digest; port 5432 on the loopback interface only, where it trusts every connection, so there is no password; started only under the postgres-local profile, which migrates it with Flyway when the backend starts; a named volume keeps it across restarts; the offline build does not need it (ADR-0013 (docs/adr/adr-0013-postgresql-on-cloud-sql.md), guide (docs/guides/cloud-sql.md)) |
built; the case engine's tables planned |
init-emulators |
— | creates the topic, the subscriptions and the bucket at every start, because the emulators keep nothing across a restart, then exits. The same images run the whole async intake in the emulator integration tests (8.4) | built |
| Mistral API | the model endpoint of the extraction, the contract gate and the translation | reached only with the mistral profile, over HTTPS, with a key from MISTRAL_API_KEY in the environment, which is never in the repository |
external |
| Vertex AI | Gemini, the second model endpoint | reached only with the vertex-ai profile, over HTTPS, in europe-west3, with Application Default Credentials and no key |
external |
7.1.2 Google Cloud Run, europe-west6¶
The proof of concept's Google Cloud deployment as one picture. The two detail views,
7.1.2.1 and
7.1.2.2, draw the API gateway
(ADR-0010 (docs/adr/adr-0010-api-gateway-and-api-contract.md)) and the async intake's
cloud resources (ADR-0009 (docs/adr/adr-0009-async-intake-pubsub-bucket-firestore.md)) on
their own. The backend runs in the same Google Cloud project as docling-serve
(ADR-0008 (docs/adr/adr-0008-google-sign-in-and-backend-on-cloud-run.md)). The same image
stays deployable to Azure Container Apps and on-premise; nothing in it depends on a Cloud
Run header.
flowchart LR
visitor["Visitor<br/>[Person]"]
person["Signed-in person<br/>[Person]"]
cf["Cloudflare login<br/>Cloudflare Access"]
google["Google<br/>[External system]"]
mistral["Mistral API<br/>[External system]"]
gha["GitHub Actions<br/>deploy jobs"]
docs["GitHub Pages<br/>docs site"]
subgraph gcp["Google Cloud project · europe-west6"]
fh["Firebase Hosting<br/>public website"]
subgraph cr["Cloud Run"]
gw["gateway"]
be["feecheck<br/>Spring Boot"]
dl["docling-serve"]
end
sm["Secret Manager"]
q[["Pub/Sub"]]
bk[("Cloud Storage")]
sql[("Cloud SQL<br/>PostgreSQL")]
end
visitor -- "HTTPS" --> fh
fh -- "Login link" --> cf
person -- "HTTPS" --> cf
cf -- "HTTPS" --> be
cf -. "HTTPS" .-> gw
gw -. "ID token" .-> be
be -- "OIDC" --> google
be -- "HTTPS" --> dl
be -- "HTTPS" --> mistral
be -- "secrets" --> sm
be -. "PDF" .-> bk
be -. "case, engine, outbox" .-> sql
be -. "publish" .-> q
q -. "push" .-> be
gha -- "deploys" --> be
gha -- "deploys" --> fh
gha -- "deploys" --> docs
visitor -- "HTTPS" --> docs
classDef person fill:#ffe8b0,stroke:#9a6b00,color:#000
classDef built fill:#b7e4c7,stroke:#2d6a4f,color:#000
classDef planned fill:#c6dcff,stroke:#1168bd,stroke-dasharray:4 3,color:#000
classDef external fill:#e6e6e6,stroke:#6b6b6b,color:#000
class visitor,person person
class fh,be,dl,sm,gha,sql,docs built
class gw,q,bk planned
class cf,google,mistral external
style gcp fill:none,stroke:#666
style cr fill:none,stroke:#666
| Colour | Meaning |
|---|---|
| green | built |
| blue, dashed border; dotted arrows | planned |
| grey | external system |
| light orange | person |
| Element | Runs | Configuration and quality / performance features | Status |
|---|---|---|---|
| Cloudflare login | the login in front of the web app's public address | configured for FeeCheck: the web app's public address is a name of the app's domain behind the Cloudflare login (guide (docs/guides/cloudflare-edge-login.md)); it points at the backend until the gateway is deployed, then at the gateway. Google's redirect URI is on that name |
external |
| Firebase Hosting | the public website (ADR-0005 (docs/adr/adr-0005-second-frontend-public-website.md)) |
on the same Google Cloud project, no longer GitHub Pages. Its deploy job signs in through the same Workload Identity Federation as the backend's, as a service account of its own that may only deploy Hosting (guide (docs/guides/website-firebase-hosting.md)). A static site with no on-premise form: its built files can be served by any web server |
built |
| GitHub Pages | the public docs site at feecheck.lauper.net: the published part of the architecture, frontend and process documents, not part of the product (ADR-0014 (docs/adr/adr-0014-public-docs-site.md), proposed) |
outside the Google Cloud project; built with MkDocs Material from an allowlist of docs/ by the Pages workflow (.github/workflows/pages.yml), and deployed only after a secret and privacy gate over the built site has passed. A static site; any web server can serve its built files |
built |
gateway |
the sign-in, the allowlist and the session, routing the whole origin (ADR-0010 (docs/adr/adr-0010-api-gateway-and-api-contract.md)) |
the only public service; OIDC login, allowlist, session; every request to the backend carries an ID token; takes the sign-in over from the backend once built | planned |
feecheck |
the backend with all eight modules of 5.2.1 — cases, consumer, extraction, intake, kernel, signin, webapp, and mcp under the mcp profile — and the web app built into it as static resources: one origin, no CORS; the sign-in, /api/**, and /mcp; the case engine in cases (8.16.3) |
deployed by the deploy job of the build workflow (.github/workflows/build.yml) on a merge to main (guide (docs/guides/feecheck-cloud-run.md)), with the profiles docling-cloud-run, mcp, mistral, cases-cloud-run and postgres-cloud-run, from the operations configuration (.claude/ops-doctor.json), with direct VPC egress into the project's VPC network for the database's private IP: 1 vCPU and 1 GiB; concurrency 10; min instances 0, so it scales to zero (ADR-0006 §4: cost) — but the readiness uptime check of the guide (docs/guides/feecheck-cloud-run.md) requests it every 15 minutes from 3 regions, so it cold-starts up to four times an hour and is rarely idle for long; max instances 1, because the session is held in memory and a second instance would not know it (ADR-0008 (docs/adr/adr-0008-google-sign-in-and-backend-on-cloud-run.md) §7); request timeout 600 s, which bounds the work a push may do inside its request (8.16.3 rule 10); a startup probe on readiness every 5 s, up to 24 times — two minutes for the cold start — and a liveness probe every 30 s (5.1.1). IAM-only, and stays so (ADR-0010 (docs/adr/adr-0010-api-gateway-and-api-contract.md) §3 point 1). cases-cloud-run puts the job on Pub/Sub and the PDF in the bucket; postgres-cloud-run, named last, selects the case store, which keeps the case in Cloud SQL. More below the table |
built; the case engine planned |
docling-serve |
document conversion | IAM-only, in europe-west6, pinned by digest, with 4 GiB, min instances 0 (scale to zero) and one instance at concurrency 1. The backend probes /health before every conversion, within a cold-start budget of 2 minutes, and calls /v1/convert/source with an ID token (ADR-0006 (docs/adr/adr-0006-services-on-google-cloud.md) §1 and §3 points 1, 5, 6; guide (docs/guides/docling-cloud-run.md)). The Compose file's container stays the local default and the on-premise equivalent (ADR-0006 §5) |
built |
| Secret Manager | the sign-in's Google client secret, the sign-in allowlist and the Mistral key | mounted into the backend as environment variables when an instance starts (by the deploy job of the build workflow (.github/workflows/build.yml)); never in the image, the workflow or the log |
built |
| Pub/Sub | the event broker: a topic per externalized event kind with a dead-letter topic per subscription; the intake's job topic | the push carries an OIDC token and is handled completely inside the push request; message ordering only on the topics whose consumers need a case's sequence (7.1.5, 8.16.3) | planned (ADR pending) |
| Cloud Storage | the private bucket for the PDF | each PDF kept for as long as its case exists, with no lifecycle rule (8.3) | built |
| Cloud SQL for PostgreSQL | the case database: the case, the case engine's tables, the outbox (5.1, 8.3); in place of the Firestore database of ADR-0009 §3 point 6 | one instance, db-f1-micro (shared core, Enterprise edition), with one database; private IP only, in the project's VPC network through private services access, because the project's organisation policy forbids a public IP; the backend connects under postgres-cloud-run through Cloud Run's direct VPC egress and the Cloud SQL Java connector, signed in by IAM database authentication as its runtime account — no password; Flyway migrates on every revision's start, and the backend holds a pool of three connections of the 25 the instance admits, with at most one instance and two revisions overlapping during a deploy (8.3); always on while development is active (its stop/start jobs are paused), and a backend starting while it is stopped fails its start (ADR-0013 (docs/adr/adr-0013-postgresql-on-cloud-sql.md), guide (docs/guides/cloud-sql.md)). Region and backups: open |
built; the case's tables built and the outbox's, the engine's planned (ADR pending) |
| Cloud Monitoring | the backend's health seen from outside: an uptime check on the readiness probe, an alert on its failure by email, and a dashboard of the backend, the database and the dead letters (8.14) | the check runs every 15 minutes from three regions with an identity token, because the service is IAM-only; the alert and the dashboard are declared as files in the repository's monitoring folder (guide (docs/guides/feecheck-cloud-run.md)) |
built |
| the OIDC identity provider for the PoC | — | external | |
| Mistral API | the model provider | the deployed service runs the mistral profile over HTTPS; the vertex-ai profile (7.1.1) is not deployed |
external |
| GitHub Actions | the gate and the deploy jobs | the required checks on main are build (./gradlew build, offline; without mutation testing on a pull request and on a push to main alike — it runs once in the local pre-push gate and in full nightly), secret-scan, pr-title (the pull request title is the squash commit's subject) and Aikido Security: check code — a GitHub app, not a workflow (CLAUDE.md, "Workflow"); the deploy jobs of the build and the website workflows sign in through Workload Identity Federation; the Pages workflow deploys the docs site with the job's own token |
built |
The feecheck service in detail. The sign-in is Google through OIDC, validated by
Spring Security, with an allowlist of accounts (GET /api/me in
5.1.1);
ADR-0010 (docs/adr/adr-0010-api-gateway-and-api-contract.md) moves it to the gateway, which becomes
the public entry and the sign-in authority (7.1.2.1).
The backend reaches docling-serve with a Google ID token, as its own service
account, and under the Mistral profile the Mistral API, with the key from Secret Manager.
/mcp, FeeCheck's own MCP server in-process behind the MCP profile
(ADR-0011 (docs/adr/adr-0011-mcp-server-placement.md)), is reached through Cloud Run's invoker IAM
check, from a developer machine with gcloud run services proxy; how /mcp is reached once the
gateway is the only public entry is open,
and so is the session model (ADR-0008/1).
7.1.2.1 Container view — the API gateway¶
What ADR-0010 (docs/adr/adr-0010-api-gateway-and-api-contract.md) decides for the PoC on Google
Cloud Run: the gateway is the only public entry, and the backend and
docling-serve are reachable only with an ID token of an allowed service account. Locally the
same containers run in Docker, without the IAM check. The product's containers as a whole are in
5.1.
flowchart LR
person["Signed-in person<br/>[Person]"]
google["Google<br/>[External system]"]
site["Public website<br/>Firebase Hosting"]
subgraph cr["Google Cloud Run, europe-west6"]
gw["gateway<br/>Spring Cloud Gateway"]
be["feecheck<br/>Spring Boot 4.1"]
dl["docling-serve<br/>container"]
end
api["API contract<br/>[OpenAPI]"]
llm["LLM provider<br/>[External system]"]
site -. "Login link" .-> gw
person -. "HTTPS" .-> gw
gw -. "OIDC" .-> google
gw -. "HTTPS" .-> be
be -- "HTTPS" --> dl
be -- "HTTPS" --> llm
be -. "honours" .-> api
classDef person fill:#ffe8b0,stroke:#9a6b00,color:#000
classDef built fill:#b7e4c7,stroke:#2d6a4f,color:#000
classDef planned fill:#c6dcff,stroke:#1168bd,stroke-dasharray:4 3,color:#000
classDef external fill:#e6e6e6,stroke:#6b6b6b,color:#000
class person person
class be,dl,site built
class gw,api planned
class google,llm external
style cr fill:none,stroke:#666
| Colour | Meaning |
|---|---|
| green | built |
| blue, dashed border; dotted arrows | planned |
| grey | external system |
| light orange | person |
| Element | Runs | Configuration and quality / performance features | Status |
|---|---|---|---|
| Public website | static files on Firebase Hosting | as in 7.1.2 | built |
gateway |
the only public service: OIDC login, allowlist, session; routes the whole origin | Spring Cloud Gateway Server Web MVC. The signed-in person uses the web app in a browser and sends pages and /api/** with the session cookie, over HTTPS; the gateway runs the OIDC code flow with Google and forwards every request with the person's token and the gateway's ID token |
planned |
feecheck (the backend) |
the web app's files and /api/**, as a resource server for the relayed token |
as in 7.1.2; its controllers are the source the API contract is derived from and checked against in the build (8.9) | built; the resource-server role planned (ADR-0010 (docs/adr/adr-0010-api-gateway-and-api-contract.md)) |
docling-serve |
document conversion | as in 7.1.2 | built |
| API contract | the API contract | a committed snapshot, derived from the controllers by springdoc | built |
| the OIDC identity provider, for the gateway's sign-in | — | external | |
| LLM provider | the Mistral API | — | external |
7.1.2.2 Async intake — containers¶
Decided by ADR-0009 (docs/adr/adr-0009-async-intake-pubsub-bucket-firestore.md); the
job flow is 6.2.1. This view adds
what 7.1.2.1 leaves out — Pub/Sub with its
dead-letter topic, the Cloud Storage bucket and the case database — and omits the gateway (the web app is
drawn talking to the backend directly), the identity provider and the model provider.
The backend stays the one deployable; the queue, the bucket and the case database are managed services on Google Cloud, each behind a port of the case component — the queue, the case-store and the document-store port in its domain ring — with a stub adapter for the offline build. Locally the emulators and fake-gcs-server stand in for them.
flowchart LR
ui["Web app<br/>intake screen"]
subgraph run["Google Cloud Run · europe-west6"]
be["Backend<br/>Spring Boot 4.1"]
ds["docling-serve<br/>container"]
end
subgraph gcp["Google Cloud managed services · europe-west6"]
q[["Pub/Sub<br/>job topic"]]
dlq[["Pub/Sub<br/>dead-letter topic"]]
b[("Cloud Storage<br/>private bucket")]
fs[("Cloud SQL<br/>PostgreSQL")]
end
ui -- "upload, poll" --> be
be -. "PDF" .-> b
be -. "case" .-> fs
be -. "publish" .-> q
q -. "push" .-> be
q -. "dead-letter" .-> dlq
dlq -. "push" .-> be
be -- "HTTPS" --> ds
classDef person fill:#ffe8b0,stroke:#9a6b00,color:#000
classDef built fill:#b7e4c7,stroke:#2d6a4f,color:#000
classDef planned fill:#c6dcff,stroke:#1168bd,stroke-dasharray:4 3,color:#000
classDef external fill:#e6e6e6,stroke:#6b6b6b,color:#000
class be,ds,ui built
class q,dlq,b,fs planned
style run fill:none,stroke:#666
style gcp fill:none,stroke:#666
| Colour | Meaning |
|---|---|
| green | built |
| blue, dashed border; dotted arrows | planned (the cloud resources) |
| Element | Runs | Configuration and quality / performance features | Status |
|---|---|---|---|
| Web app — intake screen | the web app, served by the backend | POST upload: where a queue is configured, answered 202 with the case when the queue takes the case and 503 with the failed case when it does not. The deployed service's cases-cloud-run profile configures the Pub/Sub queue; whether its topic and subscriptions, in the rows below, exist in the project is not verified; GET the case's status, polling |
built |
| Backend | the upload, the push endpoint, the status endpoint (modules cases and consumer); the consumer converts through intake's converter port |
as in 7.1.2; stores the PDF, records the case, its pages and its state, publishes the case ID as the job; the case's queue, its ports, the adapters, the cases-cloud-run profile and the push token check (spec 264 (docs/specs/264-google-case-adapters.md)) |
built |
docling-serve |
document conversion | as in 7.1.2 | built |
| Pub/Sub — job topic | the queue | push subscription, pushing the case ID with an OIDC token; 100 attempts, backoff 10–600 s | planned |
| Pub/Sub — dead-letter topic | the messages that ran out of attempts | receives a message after 100 attempts; its push marks the case failed | planned |
| Cloud Storage | the private bucket for the PDF | as in 7.1.2 | built |
| Cloud SQL for PostgreSQL | the case and its pages, the case engine's tables, the outbox | as in 7.1.2 | built; the case engine's tables planned (ADR pending) |
Locally, the Compose file runs the Pub/Sub emulator, fake-gcs-server and — under postgres-local — the
postgres container beside docling-serve; the offline build runs on stub adapters.
7.1.3 Infrastructure dependencies and their on-premise equivalents¶
ARC-Q4.3 and NFR-8: every infrastructure dependency has a documented on-premise equivalent, and a dependency without one is not admissible. This table is that documentation.
| Dependency | Status | Cloud / hosted form | On-premise equivalent |
|---|---|---|---|
Document conversion — docling-serve |
built | Google Cloud Run, europe-west6, synthetic documents only (ADR-0006 (docs/adr/adr-0006-services-on-google-cloud.md), guide (docs/guides/docling-cloud-run.md)) |
the same container, run by the customer; no document leaves the host |
Inference — Mistral API, the mistral profile |
built | Mistral's hosted API | a customer-operated model behind a Spring AI chat model, selected by configuration; not built (11.3 TD-8) |
Inference — Gemini on Vertex AI, the vertex-ai profile |
built | Vertex AI, europe-west3 (Frankfurt): EU, not Switzerland, because europe-west6 serves no Gemini model (ADR-0012 (docs/adr/adr-0012-model-provider-and-extraction-shape.md)) |
the same as for the Mistral API |
Relational database + vector store — PostgreSQL + pgvector (ADR-0013 (docs/adr/adr-0013-postgresql-on-cloud-sql.md)): the case, the case engine's tables, the outbox |
the database, its migrations, the Cloud SQL instance and the tables of the case and the outbox built; the case engine's tables planned (ADR pending) | Cloud SQL for PostgreSQL, one shared-core instance for development and test; locally the postgres container |
self-hosted PostgreSQL with the pgvector extension — the same container image |
| Case engine — Flowable CMMN | planned (ADR pending) | embedded in the backend, its tables in the relational database above | the same: it is part of the backend's image and needs nothing of its own |
Queue and event broker — Pub/Sub, push subscription; the intake's queue adapter (ADR-0009 (docs/adr/adr-0009-async-intake-pubsub-bucket-firestore.md), spec 264 (docs/specs/264-google-case-adapters.md)), its topic and subscriptions, the event backbone (8.16.3) |
adapter built; the rest planned (ADR pending) | Google Pub/Sub, europe-west6; locally the Pub/Sub emulator |
another Spring Cloud Stream binder — RabbitMQ or Kafka — chosen by configuration (8.16.3) |
| Document store — private bucket for the uploaded PDF, kept for as long as its case exists | built | Google Cloud Storage, europe-west6; locally fake-gcs-server |
open |
| Case store — the case and its converted pages, kept until the case is deleted: in the relational database above | built (PostgreSQL) | the relational database above: Cloud SQL on Google Cloud, the postgres container locally |
the relational database above |
API gateway — Spring Cloud Gateway Server Web MVC (ADR-0010 (docs/adr/adr-0010-api-gateway-and-api-contract.md)) |
planned | its own Cloud Run service, the only public one | the same container, run by the customer |
Identity — OIDC identity provider, chosen per installation and kept switchable (4.5); Google through OIDC in the backend for the PoC (ADR-0008 (docs/adr/adr-0008-google-sign-in-and-backend-on-cloud-run.md)) |
built | the installation's cloud identity provider; Google for the PoC | the installation's on-premise identity provider; federated either way |
Secrets — Google Secret Manager: the sign-in's client secret and allowlist and the Mistral key, mounted as environment variables by the deploy job of the build workflow (.github/workflows/build.yml) |
built | Secret Manager in the PoC's Google Cloud project | any mechanism that sets the same environment variables, which is all the backend reads |
Edge login — Cloudflare Access (guide (docs/guides/cloudflare-edge-login.md)) |
built | Cloudflare Access in front of the web app's public address | TBD |
Static website hosting — Firebase Hosting (ADR-0005 (docs/adr/adr-0005-second-frontend-public-website.md), guide (docs/guides/website-firebase-hosting.md)) |
built | Firebase Hosting in the PoC's Google Cloud project | any web server serving the website's built files |
| Metrics, traces and log sink | planned | any OpenTelemetry- and Prometheus-compatible service | self-hosted OpenTelemetry collector and Prometheus-compatible store |
Base images are to be pinned by digest (ARC-Q4); both docling-serve images — the Compose file's and
the Cloud Run service's — are, and the build checks both, and that they are on the same release
(11.3 TD-7, paid).
7.1.4 Environment per installation¶
For the proof of concept the environment is Google Cloud Run in europe-west6, switchable to
another provider by configuration, with the container image as the unit that moves
(ADR-0006 (docs/adr/adr-0006-services-on-google-cloud.md) §3 points 1–2; the reason is in its §4:
cost); the backend runs in the same project
(ADR-0008 (docs/adr/adr-0008-google-sign-in-and-backend-on-cloud-run.md)). The product's containers
are in 5.1.
The driver for Google Cloud in the PoC is cost (ADR-0006 §4); the provider stays switchable.
Beyond the PoC there is no single target environment for the product. Each installation chooses its own — a cloud service or an on-premise installation — and the product must support that choice from the same image set (ARC-Q4, 4.5). That is why every dependency in 7.1.3 needs an on-premise equivalent.
7.1.5 Event transport per environment¶
Where the event backbone of 8.16.3 sends and receives its events; the code is the same everywhere, only the configuration differs (8.13).
| Environment | Delivery inside the deployable | Outbound to the broker | Inbound from the broker | Status |
|---|---|---|---|---|
| Development | in memory, to the listeners | off | — | planned |
Offline build (./gradlew build) |
in memory | off, or Spring Cloud Stream's in-JVM test binder | the test binder | planned |
| End-to-end tests | in memory | Spring Cloud Stream's Pub/Sub binder against the Pub/Sub emulator in a container, a Gradle task of its own, never part of build |
the Pub/Sub binder pulling from the emulator; push into the inbound push adapter stays production's path | planned |
| Production on Google Cloud | in memory | the Pub/Sub binder to Pub/Sub, for the facts out of a case and — only with a worker — the stage requests | push into the inbound push adapter, so that Cloud Run scales to zero; each push handled completely inside its request, because Cloud Run allocates CPU only while it serves one | planned |
A worker deployment, the same image running only the stage modules' request listeners, is not in the PoC (8.16.3).