<@U1NH2D3J6> Is there any easier way to work with ...
# vertx
d
@julienviet Is there any easier way to work with Buffer and strings than encoding turning into bytes sending size int then sending string? I'm sure that such a common use case can be automated...?
j
what are your use case ? often the
write
method or
end
method are overloaded to send a
String
or
Buffer
d
I want to send multiple strings through the eventbus and receive them on the other side as a coroutines Channel for async processing..
In the same reply... but maybe now that I think, this might not be possible since once the buffer is sent in reply, it can't be written to anymore?
j
the buffer is copied
d
@julienviet So the only way is to use an HttpServer endpoint with multiple writes? Is it the same performance as eventbus?
j
I don't understand what you mean
d
@julienviet I need to request info from another verticle that has multiple parts as an answer to the same request, and there may be latency between the answers.. an eventbus only recieves one reply and can't listen to multiple replies and process each one as it comes, if I understand correctly...?
j
do you know how many answers there are ?
on the other event bus consumer part, you should wiat to have all data and send a single response
if that's not acceptable, there is another way to do