# lcoppini/tparquitecturasweb architecture

> Architecture diagram of the GitHub repository lcoppini/tparquitecturasweb, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lcoppini/tparquitecturasweb
- Repository: https://github.com/lcoppini/tparquitecturasweb

## Overview

The repository’s main product is TicketYa, a Spring-based ticketing platform. Organizers manage events and venues; users reserve tickets, pay, and present a QR code for access. The tree also contains earlier student projects, which are not part of this map. The shown ticket-service excerpt confirms reservation lookups and validation across user, event, and sector services, plus payment persistence; other service interactions are omitted where source was not sampled.

Main entry points: [`Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/service/EntradaService.java`](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/service/EntradaService.java) (Reservation Service), [`Entrega4/msvc-gateway/src/main/java/com/ticketya/gateway/config/SecurityConfig.java`](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-gateway/src/main/java/com/ticketya/gateway/config/SecurityConfig.java) (API Gateway), [`Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/service/PagoService.java`](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/service/PagoService.java) (Payment Service), [`Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/controller/EntradaController.java`](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/controller/EntradaController.java) (Ticket API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_edge["Ticketing"]
  node_ticket_api["Ticket API"]
  node_ticket_service["Reservation Service"]
  node_ticket_store[("Ticket Store")]
  node_event_client["Event Client<br/>[EventoClient.java]"]
  node_sector_client["Sector Client<br/>[SectorClient.java]"]
  node_user_client["User Client<br/>[UsuarioClient.java]"]
  node_payment_api["Payment API"]
  node_payment_service["Payment Service<br/>[PagoService.java]"]
  node_payment_store[("Payment Store")]
  node_payment_records[("Payment Records")]
  node_access_api["Access Validation"]
end

subgraph group_events["Events and Venues"]
  node_event_api["Event API"]
  node_event_service["Event Service<br/>[EventoService.java]"]
  node_event_store[("Event Store")]
  node_venue_api["Venue API"]
  node_venue_service["Venue Service<br/>[LugarService.java]"]
  node_venue_store[("Venue Store")]
end

subgraph group_identity["Identity"]
  node_user_api["User API"]
  node_user_service["User Service"]
  node_user_store[("User Store")]
end

subgraph group_platform["Platform Services"]
  node_gateway["API Gateway"]
  node_discovery["Service Discovery"]
  node_config_service["Configuration Service"]
  node_notifications["Notifications"]
  node_preferences["Preferences"]
end

node_attendee(("Attendee"))
node_organizer(("Organizer"))

node_attendee -->|"requests tickets"| node_ticket_api
node_ticket_api -.->|"delegates to"| node_ticket_service
node_ticket_service -->|"checks and saves"| node_ticket_store
node_ticket_service -->|"fetches user"| node_user_client
node_ticket_service -->|"fetches event"| node_event_client
node_ticket_service -->|"fetches sector"| node_sector_client
node_attendee -.->|"submits payment"| node_payment_api
node_payment_api -.->|"delegates to"| node_payment_service
node_payment_service -->|"locks and updates"| node_ticket_store
node_payment_service -->|"reads and writes"| node_payment_store
node_payment_service -->|"records payment"| node_payment_records
node_attendee -.->|"presents QR"| node_access_api
node_organizer -->|"manages events"| node_event_api
node_event_api -->|"delegates to"| node_event_service
node_event_service -.->|"persists events"| node_event_store
node_venue_api -->|"delegates to"| node_venue_service
node_venue_service -.->|"persists venues"| node_venue_store
node_user_api -->|"delegates to"| node_user_service
node_user_service -.->|"persists users"| node_user_store
node_gateway -.->|"routes requests"| node_ticket_api
node_gateway -.->|"routes requests"| node_event_api
node_gateway -.->|"routes requests"| node_venue_api
node_gateway -.->|"routes requests"| node_user_api

click node_ticket_api "https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/controller/EntradaController.java"
click node_ticket_service "https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/service/EntradaService.java"
click node_ticket_store "https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/repository/EntradaRepository.java"
click node_event_client "https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/client/EventoClient.java"
click node_sector_client "https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/client/SectorClient.java"
click node_user_client "https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/client/UsuarioClient.java"
click node_payment_api "https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/controller/PagoController.java"
click node_payment_service "https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/service/PagoService.java"
click node_payment_store "https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/repository/PagoRepository.java"
click node_payment_records "https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/repository/RegistroPagoRepository.java"
click node_access_api "https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/controller/AccesoController.java"
click node_event_api "https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-evento/src/main/java/com/ticketya/evento/controller/OrganizadorEventoController.java"
click node_event_service "https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-evento/src/main/java/com/ticketya/evento/service/EventoService.java"
click node_event_store "https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-evento/src/main/java/com/ticketya/evento/repository/EventoRepository.java"
click node_venue_api "https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-ubicacion/src/main/java/com/ticketya/ubicacion/controller/LugarController.java"
click node_venue_service "https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-ubicacion/src/main/java/com/ticketya/ubicacion/service/LugarService.java"
click node_venue_store "https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-ubicacion/src/main/java/com/ticketya/ubicacion/repository/LugarRepository.java"
click node_user_api "https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-usuarios/src/main/java/com/ticketya/usuarios/controller/UsuarioController.java"
click node_user_service "https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-usuarios/src/main/java/com/ticketya/usuarios/service/UsuarioService.java"
click node_user_store "https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-usuarios/src/main/java/com/ticketya/usuarios/repository/UsuarioRepository.java"
click node_gateway "https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-gateway/src/main/java/com/ticketya/gateway/config/SecurityConfig.java"
click node_discovery "https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-eureka/src/main/java/com/ticketya/eureka/MsvcEurekaApplication.java"
click node_config_service "https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-config/src/main/java/com/ticketya/config/MsvcConfigApplication.java"
click node_notifications "https://github.com/lcoppini/tparquitecturasweb/tree/main/Entrega4/msvc-notificaciones/src/main/java/com/ticketya/notificaciones"
click node_preferences "https://github.com/lcoppini/tparquitecturasweb/tree/main/Entrega4/msvc-preferencias/src/main/java/com/ticketya/preferencias"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_ticket_api,node_ticket_service,node_ticket_store,node_event_client,node_sector_client,node_user_client,node_payment_api,node_payment_service,node_payment_store,node_payment_records,node_access_api toneBlue
class node_event_api,node_event_service,node_event_store,node_venue_api,node_venue_service,node_venue_store toneAmber
class node_user_api,node_user_service,node_user_store toneMint
class node_gateway,node_discovery,node_config_service,node_notifications,node_preferences toneRose
class node_attendee,node_organizer toneIndigo
```

## Components

### Ticketing

- [Ticket API](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/controller/EntradaController.java): `Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/controller/EntradaController.java`
- [Reservation Service](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/service/EntradaService.java): `Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/service/EntradaService.java`
- [Ticket Store](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/repository/EntradaRepository.java): `Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/repository/EntradaRepository.java`
- [Event Client](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/client/EventoClient.java): `Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/client/EventoClient.java`
- [Sector Client](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/client/SectorClient.java): `Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/client/SectorClient.java`
- [User Client](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/client/UsuarioClient.java): `Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/client/UsuarioClient.java`
- [Payment API](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/controller/PagoController.java): `Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/controller/PagoController.java`
- [Payment Service](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/service/PagoService.java): `Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/service/PagoService.java`
- [Payment Store](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/repository/PagoRepository.java): `Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/repository/PagoRepository.java`
- [Payment Records](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/repository/RegistroPagoRepository.java): `Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/repository/RegistroPagoRepository.java`
- [Access Validation](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/controller/AccesoController.java): `Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/controller/AccesoController.java`

### Events and Venues

- [Event API](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-evento/src/main/java/com/ticketya/evento/controller/OrganizadorEventoController.java): `Entrega4/msvc-evento/src/main/java/com/ticketya/evento/controller/OrganizadorEventoController.java`
- [Event Service](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-evento/src/main/java/com/ticketya/evento/service/EventoService.java): `Entrega4/msvc-evento/src/main/java/com/ticketya/evento/service/EventoService.java`
- [Event Store](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-evento/src/main/java/com/ticketya/evento/repository/EventoRepository.java): `Entrega4/msvc-evento/src/main/java/com/ticketya/evento/repository/EventoRepository.java`
- [Venue API](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-ubicacion/src/main/java/com/ticketya/ubicacion/controller/LugarController.java): `Entrega4/msvc-ubicacion/src/main/java/com/ticketya/ubicacion/controller/LugarController.java`
- [Venue Service](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-ubicacion/src/main/java/com/ticketya/ubicacion/service/LugarService.java): `Entrega4/msvc-ubicacion/src/main/java/com/ticketya/ubicacion/service/LugarService.java`
- [Venue Store](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-ubicacion/src/main/java/com/ticketya/ubicacion/repository/LugarRepository.java): `Entrega4/msvc-ubicacion/src/main/java/com/ticketya/ubicacion/repository/LugarRepository.java`

### Identity

- [User API](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-usuarios/src/main/java/com/ticketya/usuarios/controller/UsuarioController.java): `Entrega4/msvc-usuarios/src/main/java/com/ticketya/usuarios/controller/UsuarioController.java`
- [User Service](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-usuarios/src/main/java/com/ticketya/usuarios/service/UsuarioService.java): `Entrega4/msvc-usuarios/src/main/java/com/ticketya/usuarios/service/UsuarioService.java`
- [User Store](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-usuarios/src/main/java/com/ticketya/usuarios/repository/UsuarioRepository.java): `Entrega4/msvc-usuarios/src/main/java/com/ticketya/usuarios/repository/UsuarioRepository.java`

### Platform Services

- [API Gateway](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-gateway/src/main/java/com/ticketya/gateway/config/SecurityConfig.java): `Entrega4/msvc-gateway/src/main/java/com/ticketya/gateway/config/SecurityConfig.java`
- [Service Discovery](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-eureka/src/main/java/com/ticketya/eureka/MsvcEurekaApplication.java): `Entrega4/msvc-eureka/src/main/java/com/ticketya/eureka/MsvcEurekaApplication.java`
- [Configuration Service](https://github.com/lcoppini/tparquitecturasweb/blob/main/Entrega4/msvc-config/src/main/java/com/ticketya/config/MsvcConfigApplication.java): `Entrega4/msvc-config/src/main/java/com/ticketya/config/MsvcConfigApplication.java`
- [Notifications](https://github.com/lcoppini/tparquitecturasweb/tree/main/Entrega4/msvc-notificaciones/src/main/java/com/ticketya/notificaciones): `Entrega4/msvc-notificaciones/src/main/java/com/ticketya/notificaciones`
- [Preferences](https://github.com/lcoppini/tparquitecturasweb/tree/main/Entrega4/msvc-preferencias/src/main/java/com/ticketya/preferencias): `Entrega4/msvc-preferencias/src/main/java/com/ticketya/preferencias`

### Other components

- **Attendee**
- **Organizer**

## Connections

- Attendee → Ticket API: requests tickets (evidence: `Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/controller/EntradaController.java`)
- Ticket API → Reservation Service: delegates to (evidence: `Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/controller/EntradaController.java`)
- Reservation Service → Ticket Store: checks and saves (evidence: `Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/service/EntradaService.java`)
- Reservation Service → User Client: fetches user (evidence: `Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/service/EntradaService.java`)
- Reservation Service → Event Client: fetches event (evidence: `Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/service/EntradaService.java`)
- Reservation Service → Sector Client: fetches sector (evidence: `Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/service/EntradaService.java`)
- Attendee → Payment API: submits payment
- Payment API → Payment Service: delegates to
- Payment Service → Ticket Store: locks and updates (evidence: `Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/service/PagoService.java`)
- Payment Service → Payment Store: reads and writes (evidence: `Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/service/PagoService.java`)
- Payment Service → Payment Records: records payment (evidence: `Entrega4/msvc-entrada/src/main/java/com/ticketya/entrada/service/PagoService.java`)
- Attendee → Access Validation: presents QR
- Organizer → Event API: manages events (evidence: `Entrega4/msvc-evento/src/main/java/com/ticketya/evento/controller/OrganizadorEventoController.java`)
- Event API → Event Service: delegates to (evidence: `Entrega4/msvc-evento/src/main/java/com/ticketya/evento/controller/OrganizadorEventoController.java`)
- Event Service → Event Store: persists events
- Venue API → Venue Service: delegates to (evidence: `Entrega4/msvc-ubicacion/src/main/java/com/ticketya/ubicacion/controller/LugarController.java`)
- Venue Service → Venue Store: persists venues
- User API → User Service: delegates to (evidence: `Entrega4/msvc-usuarios/src/main/java/com/ticketya/usuarios/controller/UsuarioController.java`)
- User Service → User Store: persists users
- API Gateway → Ticket API: routes requests
- API Gateway → Event API: routes requests
- API Gateway → Venue API: routes requests
- API Gateway → User API: routes requests
