-
Notifications
You must be signed in to change notification settings - Fork 30
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
New gateway 'service' - part 1 #663
Conversation
e4bfcc5
to
c70c64b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@NotBlank @PathVariable("tenant") String tenant, | ||
@NotBlank @PathVariable("application") String application, | ||
@NotBlank @PathVariable("gateway") String gateway, | ||
@RequestBody ProduceRequest produceRequest) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where do you set the timeout ?
I guess that we should give the client the ability to set the timeout for waiting for the message to arrive
throw new ResponseStatusException(HttpStatus.UNAUTHORIZED, e.getMessage()); | ||
} | ||
|
||
try (final ConsumeGateway consumeGateway = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have to follow up with a cache for this
Changes:
service
, very similar to the chat one but only for http. The user must send a input and the gateways wait for a message from the output topichttp://xxx/api/gateways/service/tenant1/application1/g4