At KAMEREO, we internally use gRPC between the inter-service communication.
Imagine we introduce a new service to manage promotion code. You can find the API definition in promotion_service.proto
under src/main/proto/kamereo/hiring_test
. GetPromotion API is responsible for returning the matching promotion with
the given promotion_code and user_id.
When there is no valid promotion found, the API should return NOT_FOUND.
Please implement vn.kamereo.hiring_test.promotionservice.PromotionServiceGrpcImpl#getPromotion
using
vn.kamereo.hiring_test.promotionservice.repository.DummyPromotionRepository#getPromotion
method.
useful tools:
- Code Quality
- Abstraction
- Test Coverage