MESH Poller

2024-10-28 | ๐Ÿ“‘ 0 words | โฑ 0 mins | ๐Ÿงพ History | โœ Tom D'Roza | ๐Ÿ”‘ Tom D'Roza

๐Ÿšง This page has less that 200 words. So it looks like this page is still under construction.

Known Issues / Todo

  • โ›… This page is draft and is subject to rapid change, and may not be fully accurate or complete

Events Consumed

Events Produced

Diagrams

c4code-mesh-poller

C4:
Link to this diagram directly: /nhs-notify-digital-letters/diagrams/c4code-mesh-poller.html
architecture-beta
    group meshPoller(cloud)[MeshPoller]
    service meshDownloaded(aws:res-amazon-eventbridge-event)[MeshPollerTimerExpired Event]
    service pdmSaved(aws:res-amazon-eventbridge-event)[MESHInboxMessageReceived Event]
    service meshPollLambda(logos:aws-lambda)[MeshPoll] in meshPoller
    service clientConfig(aws:res-aws-systems-manager-parameter-store)[Client Configuration] in meshPoller
    service mesh(server)[MESH]

    meshDownloaded:R --> L:meshPollLambda
    clientConfig:B --> T:meshPollLambda
    meshPollLambda:B --> T:mesh
    meshPollLambda:R --> L:pdmSaved

sequence-mesh-poller

C4:
Link to this diagram directly: /nhs-notify-digital-letters/diagrams/sequence-mesh-poll.html

sequenceDiagram
  actor trust as Trust
  participant meshMailbox as MESH<br/>Mailbox
  participant meshPoll as Lambda<br/>MESHPoll
  participant clientConfig as SSM<br/>Client Config
  participant eventBus as EventBus

  trust ->> meshMailbox: MESH (DocumentReference)

  Loop 5 min interval
    eventBus -) meshPoll: Scheduled event
    activate meshPoll
  end
  meshPoll ->> meshMailbox: Check for new files
  meshPoll ->> clientConfig: GetClientConfig(mailboxId)
  activate clientConfig
    clientConfig -->> meshPoll: ClientConfig
  deactivate clientConfig
  meshPoll -) eventBus: MESHInboxMessageReceived Event<br/>(meshMessageId, senderId)
  deactivate meshPoll


Table of contents