-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mojaloop/#3577): add batch handler (#582)
feat(mojaloop/#3577): add batch handler - mojaloop/project#3577 - Added `BULK_TRANSFER` property to `EVENT_TYPE_ACTION_TOPIC_MAP` for routing `bulk-prepare` messages in `centralledger/chart-handler-transfer-prepare` - Updated central-ledger version to include version with batch functionality - Added configs for enabling/disabling batch functionality - Added chart for batch functionality - Updated README with instructions on batch functionality
- Loading branch information
Showing
40 changed files
with
2,288 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
centralledger/chart-handler-transfer-position-batch/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: v2 | ||
description: "Central-Ledger Transfer Position Batch Handler Helm chart for Kubernetes." | ||
name: centralledger-handler-transfer-position-batch | ||
version: 15.3.0 | ||
appVersion: "17.4.0" | ||
home: http://mojaloop.io | ||
icon: http://mojaloop.io/images/logo.png | ||
sources: | ||
- https://github.com/mojaloop/mojaloop | ||
- https://github.com/mojaloop/helm | ||
- https://github.com/mojaloop/central-ledger | ||
maintainers: | ||
- name: Viaya Kumar Guthi | ||
email: vijaya.guthi@infitx.com | ||
- name: Steven Oderayi | ||
email: steven.oderayi@infitx.com | ||
dependencies: | ||
- name: common | ||
repository: "https://mojaloop.github.io/charts/repo" | ||
version: 2.0.0 | ||
tags: | ||
- moja-common |
50 changes: 50 additions & 0 deletions
50
centralledger/chart-handler-transfer-position-batch/configs/default-sidecar.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{{- $kafkaHost := ( .Values.config.kafka_host | replace "$release_name" .Release.Name ) -}} | ||
{ | ||
"PORT": {{ .Values.sidecar.service.internalPort }}, | ||
"EVENT_LOGGER_GRPC_HOST": "{{ .Values.sidecar.config.event_log_grpc_host }}", | ||
"EVENT_LOGGER_GRPC_PORT": {{ .Values.sidecar.config.event_log_grpc_port }}, | ||
"INSTRUMENTATION": { | ||
"METRICS": { | ||
"DISABLED": false, | ||
"labels": { | ||
"eventId": "*" | ||
}, | ||
"config": { | ||
"timeout": 5000, | ||
"prefix": "moja_", | ||
"defaultLabels": { | ||
"serviceName": "{{ template "centralledger-handler-transfer-position-batch.name" . }}-event-sidecar" | ||
} | ||
} | ||
} | ||
}, | ||
"KAFKA": { | ||
"TOPIC_TEMPLATES": { | ||
"GENERAL_TOPIC_TEMPLATE": { | ||
"TEMPLATE": "topic-{{"{{"}}functionality{{"}}"}}", | ||
"REGEX": "topic-(.*)" | ||
} | ||
}, | ||
"PRODUCER": { | ||
"EVENT": { | ||
"config": { | ||
"options": { | ||
"messageCharset": "utf8" | ||
}, | ||
"rdkafkaConf": { | ||
"metadata.broker.list": "{{ $kafkaHost }}:{{ .Values.config.kafka_port }}", | ||
"client.id": "es-prod-event", | ||
"event_cb": true, | ||
"dr_cb": true, | ||
"socket.keepalive.enable": true, | ||
"queue.buffering.max.messages": 10000000 | ||
}, | ||
"topicConf": { | ||
"request.required.acks": "all", | ||
"partitioner": "{{ .Values.config.kafka_partitioner }}" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.