System Overview
Shape
Three layers, one runtime:
Vaadin webapps (ui, admin) ─┐
├─> glacez-soa-webservice ─Feign─> core, agent, worker, portfolio, findata
Astro portal (glacez.com) ──┘ │
└─RabbitMQ─> worker, simulator, ui (event push)
| Component | Kind | Runtime | Role |
|---|---|---|---|
glacez-webapp-ui |
Vaadin 25 | container | main user interface |
glacez-webapp-admin |
Vaadin 25 | container | admin interface |
glacez-webapp-portal |
Astro | container | public landing page, no SOA access |
glacez-webapp-wiki |
MkDocs Material | container | this wiki; no SOA access |
glacez-soa-webservice |
Spring Boot, WAR | servlet container | API surface for the UI, security entry point, orchestrator |
glacez-soa-core |
Spring Boot, jar | embedded Tomcat | strategy control, synchronization, ROI/lift jobs |
glacez-soa-worker |
Spring Boot, jar | embedded Tomcat | exchange execution, record import, emails |
glacez-soa-portfolio |
Spring Boot, jar | embedded Tomcat | portfolio/position math, distribution, coherence |
glacez-soa-findata |
Spring Boot, jar | embedded Tomcat | market data, currencies, news, OHLCV |
glacez-soa-simulator |
Spring Boot, jar | embedded Tomcat | backtests, MQ-driven |
glacez-soa-agent |
Spring Boot, jar | embedded Tomcat | AI reports, investment profile |
glacez-lib |
Maven library | – | shared models, factories, exchange wrapper, exceptions |
glacez-lib-xchange |
Maven library | – | fork/PR target for the upstream exchange client |
All ten code repos build with Java 25; the Vaadin webapps are on Vaadin 25.3.x, everything is Maven multi-module (api + impl, with the webapps and libraries varying).
A request travels
- The Vaadin app calls
glacez-soa-webserviceover HTTP with its Keycloak session. - Webservice authenticates the bearer token, checks ownership, and either serves the domain from its own repositories or delegates:
- market/news data →
findata(/v2) - strategy control and sync jobs →
core - execution →
worker - portfolio/position math →
portfolio - AI reports →
agent - Deferred work goes to RabbitMQ, never to a Feign call that blocks the user: trading and record jobs to
worker, simulations tosimulator. - State changes emit an event; webservice pushes it on the event fanout so every open UI session refreshes.
The Vaadin webapps never orchestrate backend domains themselves, and no SOA calls webservice — it is a leaf for everyone else (see Communication for the verified edges).
Persistence and messaging
- MongoDB — one cluster, one shared database for every SOA. See Data ownership; this is the single most important constraint in the platform.
- RabbitMQ — job queues plus an event fanout. See Communication.
- No Redis today: each service caches in-process (
ConcurrentMapCacheManager), evicted on its own schedule. See ADR-005.
External dependencies
| Dependency | Used by | Notes |
|---|---|---|
| Keycloak | webservice (resource server), webapps (OAuth clients) | resource_access.glacez-app.roles |
| Exchanges via XChange | worker, through glacez-lib-exchanges |
see ADR-002 |
| CoinMarketCap / CryptoCompare-class price API | findata | provider migration tracked in Improve findata pricing |
| OpenRouter (LLM) | agent | report and profile generation |