Microservices library - scalecube-services is a high throughput, low latency reactive microservices library built to scale. It features: API-Gateways, service-discovery, service-load-balancing, the architecture supports plug-and-play service communication modules and features. built to provide performance and low-latency real-time stream-processing
When using dispatcher and REQUEST_CHANNEL together like follow:
When called it will have error
GreetingRequest cannot be cast to ServiceMessage
. The error happens atServiceMethodInvoker::toRequest
:In this case, it should return request, but the isRequestTypeServiceMessage() returns false, and request.data() is returned.
This PR tries to fix this by checking the actual type arguments, then returns true.
Please take a look if this is expected behavior or should be fixed.
Thank you.