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

Refactor Message Queue implementation #64

Merged

Conversation

terryyylim
Copy link
Contributor

@terryyylim terryyylim commented Mar 2, 2023

What this PR does / why we need it:

In order for Management and Treatment Service to start without an actual Google PubSub, we need to remove the dependency on it, and this PR introduces a generic MessageQueue interface for doing so.

In addition, an enum has been introduced for the schema used by Treatment Service plugin, to support noop and pubsub message queue kinds.

Which issue(s) this PR fixes:

Fixes #

@terryyylim terryyylim self-assigned this Mar 2, 2023
@terryyylim terryyylim changed the title WIP: Refactor management service message queue WIP: Refactor Message Queue implementation Mar 2, 2023
@terryyylim terryyylim force-pushed the refactor-message-queue-interface branch 2 times, most recently from 7f0dd69 to 27e1046 Compare March 2, 2023 05:03
@terryyylim terryyylim force-pushed the refactor-message-queue-interface branch 2 times, most recently from bea2dba to 2b32952 Compare March 2, 2023 09:04
@terryyylim terryyylim force-pushed the refactor-message-queue-interface branch 2 times, most recently from 45df65e to f77764b Compare March 2, 2023 09:56
@terryyylim terryyylim force-pushed the refactor-message-queue-interface branch from f77764b to 4bd1afa Compare March 2, 2023 10:03
@terryyylim terryyylim force-pushed the refactor-message-queue-interface branch from 7d94a37 to 468dad8 Compare March 2, 2023 10:34
@terryyylim terryyylim changed the title WIP: Refactor Message Queue implementation Refactor Message Queue implementation Mar 2, 2023
@terryyylim terryyylim marked this pull request as ready for review March 2, 2023 10:36
Copy link
Collaborator

@krithika369 krithika369 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this refactoring @terryyylim ! The PR largely looks good. Left some comments on the organization of the code.

management-service/services/message_queue_service.go Outdated Show resolved Hide resolved
treatment-service/config/config.go Outdated Show resolved Hide resolved
treatment-service/services/message_queue_service.go Outdated Show resolved Hide resolved
Copy link
Contributor

@deadlycoconuts deadlycoconuts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks a lot for the extensive refactoring! Just left a couple of tiny comments! 🚀

management-service/config/config.go Outdated Show resolved Hide resolved
management-service/config/config_test.go Outdated Show resolved Hide resolved
management-service/config/example.yaml Show resolved Hide resolved
tests/e2e/config/treatment-service.local.yaml Show resolved Hide resolved
treatment-service/config/config.go Outdated Show resolved Hide resolved
treatment-service/server/server.go Outdated Show resolved Hide resolved
@terryyylim terryyylim force-pushed the refactor-message-queue-interface branch 2 times, most recently from eab9be0 to d79b24e Compare March 3, 2023 06:27
@terryyylim terryyylim force-pushed the refactor-message-queue-interface branch from d79b24e to 9fcc4db Compare March 3, 2023 06:44
@terryyylim terryyylim merged commit e3f30e5 into caraml-dev:main Mar 3, 2023
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.

None yet

3 participants