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(3666): refactor quoting service into an event driven solution to improve performance #321

Merged
merged 25 commits into from
Feb 2, 2024

Conversation

geka-evk
Copy link
Contributor

@geka-evk geka-evk commented Dec 11, 2023

feat(3666): refactor quoting service into an event driven solution to improve performance.

The current quote service performs this action in memory, and a better solution would be to split the servce into two microservices with Kafka events. This will decouple the participant API responses from the work being performed and free's up the nodeJS IO threads.

  • added Kafka config
  • updated /quotes /bulkQuotes routes
  • added QuotingHandler
  • updated tests

@geka-evk geka-evk changed the title feat(3666) added Kafka config; updated POST /quotes route; added QuotingHandler; updated tests feat(3666): added Kafka config; updated /quotes /bulkQuotes routes; added QuotingHandler; updated tests Dec 11, 2023
@geka-evk geka-evk changed the title feat(3666): added Kafka config; updated /quotes /bulkQuotes routes; added QuotingHandler; updated tests feat(3666): added KafkaConfig, QuotingHandler; updated /quotes /bulkQuotes routes; updated tests Dec 11, 2023
config/default.json Show resolved Hide resolved
config/default.json Show resolved Hide resolved
config/default.json Show resolved Hide resolved
config/default.json Show resolved Hide resolved
jest.config.js Outdated Show resolved Hide resolved
src/api/bulkQuotes/{id}/error.js Show resolved Hide resolved
src/handlers/QuotingHandler.js Show resolved Hide resolved
src/handlers/QuotingHandler.js Show resolved Hide resolved
src/handlers/QuotingHandler.js Show resolved Hide resolved
src/handlers/init.js Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
src/api/bulkQuotes/{id}.js Outdated Show resolved Hide resolved
@vijayg10 vijayg10 changed the title feat(3666): added KafkaConfig, QuotingHandler; updated /quotes /bulkQuotes routes; updated tests feat(3666): refactor quoting service into an event driven solution to improve performance Dec 21, 2023
@kleyow
Copy link
Contributor

kleyow commented Jan 30, 2024

Lgtm. Just the CI, dep/audit updating discussed on slack.

fix(mojaloop/#3739): Quote refactor to use Kafka - metrics regression
- Added monitoring server (Hapi server)
- Converted existing health check code to Hapi plugin and added it to the monitoring server
- Added a metrics plugin 
- Update test coverage
@geka-evk geka-evk merged commit 29036d5 into main Feb 2, 2024
11 checks passed
@geka-evk geka-evk deleted the feat/3666 branch February 2, 2024 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants