How unizar-30246-webengineering/lab6-microservices works
This repository implements a four-service account lookup application: a browser user searches through the MVC web service, which calls the accounts REST API; Eureka provides service discovery and Config Server supplies centralized configuration. The graph preserves the account search stages and the documented operational services. Source excerpts show the web-to-API and controller-to-repository calls; Eureka and Config Server relationships are documented in the README and application comments. Other templates and service wiring are represented at subsystem level where their implementation was not sampled.
Main entry points: WebAccountsController.java Web account routes · WebAccountsService.java Accounts client · Application.kt Config Server · AccountsController.kt Account REST routes
Components 17
Web interface
- Web account routes
web/src/main/java/web/web/WebAccountsController.java - Search validation
web/src/main/java/web/model/SearchCriteria.java - Accounts client
web/src/main/java/web/service/WebAccountsService.java - Client configuration
web/src/main/java/web/config/WebServerConfiguration.java - Account DTO
web/src/main/java/web/model/Account.java - MVC templates
web/src/main/resources/templates - Web service runtime
web/src/main/java/web/WebServer.java
Accounts API
- Account REST routes
accounts/src/main/kotlin/web/AccountsController.kt - Account repository
accounts/src/main/kotlin/repository/AccountRepository.kt - Account entity
accounts/src/main/kotlin/model/Account.kt - Not-found response
accounts/src/main/kotlin/web/AccountNotFoundException.kt - In-memory HSQLDB
- Accounts service runtime
accounts/src/main/kotlin/Application.kt
Service platform
- Eureka registry
discovery/src/main/kotlin/Application.kt
Configuration
- Config Server
config/src/main/kotlin/Application.kt - Service configuration
config/config
Other components
- Browser user
Connections 17
- Browser user → Web account routes: searches
README.md - Web account routes → Search validation: validates
web/src/main/java/web/web/WebAccountsController.java - Web account routes → Accounts client: requests accounts
web/src/main/java/web/web/WebAccountsController.java - Web account routes → MVC templates: renders views
web/src/main/java/web/web/WebAccountsController.java - Client configuration → Accounts client: creates client
web/src/main/java/web/config/WebServerConfiguration.java - Accounts client → Account DTO: maps response
web/src/main/java/web/service/WebAccountsService.java - Accounts client → Account REST routes: calls REST API
web/src/main/java/web/service/WebAccountsService.java - Account REST routes → Account repository: queries
accounts/src/main/kotlin/web/AccountsController.kt - Account REST routes → Not-found response: throws on missing
accounts/src/main/kotlin/web/AccountsController.kt - Account repository → Account entity: queries entity
accounts/src/main/kotlin/repository/AccountRepository.kt - Account repository → In-memory HSQLDB: reads
README.md - Accounts service runtime → Eureka registry: registers with
accounts/src/main/kotlin/Application.kt - Web service runtime → Eureka registry: discovers services
- Config Server → Eureka registry: registers with
config/src/main/kotlin/Application.kt - Config Server → Service configuration: serves
README.md - Accounts service runtime → Config Server: fetches configuration
accounts/src/main/kotlin/Application.kt - Web service runtime → Config Server: fetches configuration
README.md