Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: #1869 Design for reliable notifications on finalization of a transfer #288

Open
wants to merge 44 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
15c9513
Added initial notifications documentation readme and asset placeholders
mdebarros Dec 10, 2020
d1560e3
updated notification-engine requirements & added example
mdebarros Dec 11, 2020
9dce0a6
Notification-engine updates
mdebarros Dec 11, 2020
f3db573
updates to notification engine
mdebarros Dec 15, 2020
a5297ae
fixed sequencing on notification design
mdebarros Dec 15, 2020
9535332
updated notify design svg, and added a gitignore for VSCode Plantuml …
mdebarros Dec 16, 2020
bed56c5
updated notification design
mdebarros Dec 16, 2020
f88dcb3
updated notification design
mdebarros Dec 16, 2020
5fa895e
updated notification design
mdebarros Dec 16, 2020
9bd9287
updated notification design
mdebarros Dec 16, 2020
e5efef6
updates to notification design docs
mdebarros Jan 6, 2021
729e264
updates to notification design docs
mdebarros Jan 6, 2021
696ee1a
updates to notification design docs
mdebarros Jan 6, 2021
a372cb7
updates to notification design docs
mdebarros Jan 6, 2021
f0012a3
updates to notification design docs
mdebarros Jan 6, 2021
a0ffd8c
Update mojaloop-technical-overview/notifications/assets/sequence/seq-…
mdebarros Jan 6, 2021
14606b4
Update mojaloop-technical-overview/notifications/README.md
mdebarros Jan 6, 2021
34366ef
Merge branch 'master' into feature/#1869Designforreliablenotification…
mdebarros Jan 27, 2021
ec679fd
Merge branch 'master' of github.com:mojaloop/documentation into featu…
mdebarros Feb 23, 2021
45b90fb
Updated to notification reliable design
mdebarros Mar 8, 2021
2a9c365
Updates to package-lock and bug fix to plantuml_diff script
mdebarros Mar 8, 2021
7b6881d
Updates to SD for notification
mdebarros Mar 8, 2021
bc9c8fc
Updated notification sd flow for alt path
mdebarros Mar 8, 2021
16b6bec
Added example for multiple transports
mdebarros Mar 9, 2021
2bced12
Updated description for notification cmd handler
mdebarros Mar 9, 2021
fbe27aa
Fixes for circleci
mdebarros Mar 9, 2021
1220fbd
fixes for circleci config
mdebarros Mar 9, 2021
e6155bd
Merge branch 'master' into feature/#1869Designforreliablenotification…
mdebarros Mar 9, 2021
7674636
Updates to notif rel end2end arch diagrams
mdebarros Mar 26, 2021
1ce400f
Merge remote-tracking branch 'origin/master' into feature/#1869Design…
mdebarros Mar 26, 2021
6ccd3ca
Merge branch 'feature/#1869Designforreliablenotificationsonfinalizati…
mdebarros Mar 26, 2021
08f004c
Removed unused folder
mdebarros Mar 26, 2021
6860051
Updates to notification v2 e2e arch diagram
mdebarros Mar 26, 2021
91b6d40
Updated notification v2 e2e arch diagram
mdebarros Mar 26, 2021
175edb9
updated notify design v2
mdebarros Mar 29, 2021
c757ab9
updated notify design v2
mdebarros Mar 29, 2021
c0ea05c
updates to notification design v2 - included more detail on re-try lo…
mdebarros Mar 30, 2021
61c9ea3
updates to notification design v2 - included more detail on re-try lo…
mdebarros Mar 30, 2021
a1b4260
updates to notification design v2 - included more detail on re-try lo…
mdebarros Mar 30, 2021
a471c42
updates to notification design v2 - included more detail on re-try lo…
mdebarros Mar 31, 2021
40daafa
updates to notification design v2 - included more detail on re-try lo…
mdebarros Mar 31, 2021
60d1a19
updates to notification design v2 - included more detail on re-try lo…
mdebarros Mar 31, 2021
af3a6f6
spelling fixes
mdebarros Mar 31, 2021
42e2c80
Updated mojaloop-simulator to fix subid issue - https://github.com/mo…
mdebarros Apr 1, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 6 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,39 +217,31 @@ workflows:
jobs:
- pr-tools/pr-title-check:
context: org-global
filters:
tags:
ignore: /.*/
branches:
ignore:
- master
- setup:
context: org-global
filters:
tags:
only: /.*/
branches:
ignore:
- /feature.*/
- /bugfix.*/
- gh-pages
- test-svg:
context: org-global
requires:
- setup
filters:
tags:
only: /.*/
branches:
ignore:
- /feature*/
- /bugfix*/
- build:
context: org-global
requires:
- setup
filters:
tags:
only: /.*/
branches:
ignore:
- /feature.*/
- /bugfix.*/
- gh-pages
- deploy:
context: org-global
requires:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ _book
*.log

*.jar

# Ignore VSCode Plantuml Image exporter
out/**/*.*
Original file line number Diff line number Diff line change
Expand Up @@ -76,23 +76,18 @@ group Send notification to Participants
activate TOPIC_NOTIFICATIONS
deactivate TOPIC_NOTIFICATIONS

group Persist Event Information
NOTIFY_HANDLER -> CSAPI: Request to persist event information - POST - /events
activate CSAPI
CSAPI -> TOPIC_EVENTS: Publish event information
activate TOPIC_EVENTS
|||
ref over TOPIC_EVENTS : Event Handler Consume\n
|||
TOPIC_EVENTS --> CSAPI: Return success
deactivate TOPIC_EVENTS
CSAPI --> NOTIFY_HANDLER: Return success
deactivate CSAPI
end
note right of NOTIFY_HANDLER #lightgray
The endpoint details are cached, when the cache
expires, the details are fetched again
note right of OPERATOR #yellow
Message:
{
payload: {
endpoint: {
type: <typeValue>,
value: <endpointValue>
}
}
}
end note

NOTIFY_HANDLER -> CSAPI: Request Endpoint details for Participant - GET - /participants/{{fsp}}/endpoints\n<color #FF0000><b>Error code:</b> 2003</color>

activate CSAPI
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
678 changes: 678 additions & 0 deletions mojaloop-technical-overview/notifications/README.md

Large diffs are not rendered by default.

Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"msgId": "18efb9ea-d29a-42b9-9b30-59e1e7cfe216",
"msgKey": "861b86e6-c3da-48b3-ba17-896710287d1f",
"msgName": "NotifyCmd",
"msgType": "Command",
"msgTopic": "NotificationCommands",
"msgPartition": null,
"msgTimestamp": 1607677081837,
"aggregateName": "Notifications",
"aggregateId": "861b86e6-c3da-48b3-ba17-896710287d1f",
"notifyId": "3920382d-f78c-4023-adf9-0d7a4a2a3a2f",
"transport": {
"type": "HTTP",
"method": "GET",
"contentType": "application/vnd.interoperability.transfers+json;version=1.0",
"recipient": {
"endpoint": "http://fsp.com/parties/{{partyIdType}}/{{partyId}}}?key={{value}}",
"params": {
"partyIdType": "MSISDN",
"partyId": "12345",
"value": "ABCD"
}
},
"options": {
"deliveryReport": true,
"retry": {
"count": 3,
"type": "noDelay|exponentialDelay",
"condition": "isNetworkError|isIdempotentRequestError|isNetworkOrIdempotentRequestError"
}
}
},
"payload": {
"headers": {
"content-type": "application/vnd.interoperability.transfers+json;version=1.0",
"date": "2019-05-28T16:34:41.000Z",
"fspiop-source": "payerfsp",
"fspiop-destination": "payerfsp"
},
"body": "data:application/vnd.interoperability.transfers+json;version=1.0;base64,ewogICJmdWxmaWxtZW50IjogIlVObEo5OGhaVFlfZHN3MGNBcXc0aV9VTjN2NHV0dDdDWkZCNHlmTGJWRkEiLAogICJjb21wbGV0ZWRUaW1lc3RhbXAiOiAiMjAxOS0wNS0yOVQyMzoxODozMi44NTZaIiwKICAidHJhbnNmZXJTdGF0ZSI6ICJDT01NSVRURUQiCn0"
},
"traceInfo": {
"traceParent": "00-8e540e87060d56a2d2e0be5d732791e7-d96a5971b7c5cac6-21",
"traceState": "acmevendor=eyJzcGFuSWQiOiJkOTZhNTk3MWI3YzVjYWM2IiwidGltZUFwaVByZXBhcmUiOiIxNjA3Njc3MDgxNzAwIiwidGltZUFwaUZ1bGZpbCI6IjE2MDc2NzcwODE4MTkifQ==",
"service": "notification-evt-handler",
"startTimestamp": 1607677081837,
"finishTimestamp": 2007677081838
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"msgId": "18efb9ea-d29a-42b9-9b30-59e1e7cfe216",
"msgKey": "861b86e6-c3da-48b3-ba17-896710287d1f",
"msgName": "NotifyDelivered",
"msgType": "Domain",
"msgTopic": "NotificationCommands",
"msgPartition": null,
"msgTimestamp": 2007677081820,
"aggregateName": "Notifications",
"aggregateId": "861b86e6-c3da-48b3-ba17-896710287d1f",
"notifyId": "3920382d-f78c-4023-adf9-0d7a4a2a3a2f",
"report": {
"requestTimestamp": 1507677081120,
"deliveryTimestamp": 1607677081840,
"deliveryReqLatency": 100,
"retryAttempts": 1,
"response": {
"statusCode": "202",
"statusDescription": "Accepted",
"headers": {
"content-type": "application/vnd.interoperability.transfers+json;version=1.0",
"date": "2019-05-28T16:34:41.000Z"
},
"body": "{}"
},
"accepted": true,
"errorInformation": {
"errorCode": "408",
"errorDescription": "ECONNABORTED\ntimeout of 2ms exceeded\nError: timeout of 2ms exceeded\n at createError (/node_modules/axios/lib/core/createError.js:16:15)\n at Timeout.handleRequestTimeout (/node_modules/axios/lib/adapters/http.js:252:16)\n at listOnTimeout (timers.js:324:15)\n at processTimers (timers.js:268:5)"
}
},
"traceInfo": {
"traceParent": "00-8e540e87060d56a2d2e0be5d732791e7-d96a5971b7c5cac6-21",
"traceState": "acmevendor=eyJzcGFuSWQiOiJkOTZhNTk3MWI3YzVjYWM2IiwidGltZUFwaVByZXBhcmUiOiIxNjA3Njc3MDgxNzAwIiwidGltZUFwaUZ1bGZpbCI6IjE2MDc2NzcwODE4MTkifQ==",
"service": "notification-Cmd-handler",
"startTimestamp": 1607677081837,
"finishTimestamp": 2007677081838
}
}
Loading