---
# System prepended metadata

title: Untitled

---

## Architettura AWS


## webSocket + apiGateway per avvio asincrono della lambda per long-process

```mermaid
sequenceDiagram 
    browser client->>websocket: "action":"start-process"
    websocket-->>browser client: "starterConnectionId":"{client_id}"
    browser client->>apiGateway: GET /totals-per-project/2015/01/{client_id}/project
    apiGateway->>lamdba timesheet report rounded:"async call"
    apiGateway->>browser client: long_process_started
    loop Every minute
        lamdba timesheet report rounded-->> websocket:send "progress %", at {client_id}
        websocket-->>browser client:progress %
    end
    lamdba timesheet report rounded-->>websocket:"action":"done","ref":"reportUrl","data":[...]
    websocket-->>browser client:"action":"done","ref":"reportUrl","data":[...]

```

## webSocket + action per avvio asincrono della lambda per per long-process

```mermaid
sequenceDiagram 
    browser client->>websocket: "action":"start-process"
    websocket-->>browser client: "starterConnectionId":"I0J8Rcj1joECIpw="
    websocket->>lamdba timesheet report rounded:"async call"
    loop Every minute
        lamdba timesheet report rounded-->> websocket:send "progress %", at {client_id}
        websocket-->>browser client:"progress %"
    end
    lamdba timesheet report rounded-->>websocket:"action":"done","ref":"reportUrl","data":[...]
    websocket-->>browser client:"action":"done","ref":"reportUrl","data":[...]

```