Open jade2k11598 opened 4 years ago
Same question concerning RESTBED client, tag as "deprecated" in documentation and in code. The message invite to "see restless for an alternative implementation". But at the same time, restless project seems discountinued since 5 years ago (last commit on May 20, 2018).
1) In the documentation design and elsewhere on dependency, it notes the dependency on ASIO and I take it that this is the Boost ASIO that it's referring to. In the section of Thread allocation, there's the following code snippet:
where the
set_worker_limit
sets the number of threads to be spawn for ASIO to use, to delegate tasks for processing. Thatsettings
gets passed to theService
. Now is the ASIO instance actually own by theService
? Is it possible to get access to the ASIO instance if one wants to post other tasks (unrelated to theService
), for processing? I only ask to avoid having to instantiate another instance of ASIO in the same executable.Also, is there a way to set the priority level of those threads?
2) I was also looking at the HTTP Client example and it noted that this was deprecated and refers to this Restless instead, which looks like a different code base from restbed. What does this mean? Is restbed being deprecated? Or only use restbed for the server side and restless for the client side?