The model is essentially the same model as used in JavaScript. Any time you
want to wait for something, you have to register a callback to be executed
when the event completes. Only one callback can be executed at a time, but
between the time that you register the callback and the time that it is
called, other events can be running.

A single "request" may be composed of many individual events, depending on
what the request handler does. For example, a request handler might make
several subrequests to back-end services, and then wait for those
subrequests to complete before returning a final response. While it is
waiting, other requests can be processed.

-Kenton

On Thu, Feb 7, 2019 at 5:36 PM <dua...@visenze.com> wrote:

> is it possible for the server the process request in the event loop
> concurrently?
>
> On Friday, February 8, 2019 at 12:58:09 AM UTC+8, Kenton Varda wrote:
>>
>> Yes, Cap'n Proto is fully designed for concurrent requests, using a
>> single-threaded event loop concurrency approach. This is the default
>> behavior in Cap'n Proto -- you don't have to do anything special to enable
>> it.
>>
>> -Kenton
>>
>> On Thu, Feb 7, 2019 at 8:51 AM <dua...@visenze.com> wrote:
>>
>>> is it possible for cap'n proto server to handler multiple requests
>>> concurrently? can you provide any examples/suggestions?
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Cap'n Proto" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to capnproto+...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/capnproto.
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Cap'n Proto" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to capnproto+unsubscr...@googlegroups.com.
> Visit this group at https://groups.google.com/group/capnproto.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to capnproto+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/capnproto.

Reply via email to