nirum icon indicating copy to clipboard operation
nirum copied to clipboard

Streamed service method calls for large payload using multiple requests

Open kanghyojun opened this issue 8 years ago • 0 comments

To make a procedure call with a large payload, it should be called with a few small payloads which are divided from one large payload through several HTTP requests to get more availability of service. I think it might be helpful if both Nirum RPC service and a client can make an RPC with one large payload into several RPC with a small payload.

service customer-service (
    @stream(window=1000)
    customer cusomers ([uuid] customer-ids);
);

Since a service schema hardly knows proper size of a window, it is possible to give the information using annotation.

kanghyojun avatar Mar 07 '17 12:03 kanghyojun