MESH Poller
2026-02-12 | ๐ 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
- MESHInboxMessageReceived - mesh-inbox-message-received - uk.nhs.notify.digital.letters.mesh.inbox.message.received.v1
- MESHInboxMessageInvalid - mesh-inbox-message-invalid - uk.nhs.notify.digital.letters.mesh.inbox.message.invalid.v1
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 meshReceived(aws:res-amazon-eventbridge-event)[MESHInboxMessageReceived Event]
service meshInvalid(aws:res-amazon-eventbridge-event)[MESHInboxMessageInvalid 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]
junction j1
meshDownloaded:R --> L:meshPollLambda
clientConfig:B --> T:meshPollLambda
meshPollLambda:B --> T:mesh
meshPollLambda:R -- L:j1
j1:T --> L:meshReceived
j1:R --> L:meshInvalid
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