[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-users
Subject:    [Boost-users] [Boost.Redis] Single Connection Concurrency Inquiry
From:       Samarah Uriarte via Boost-users <boost-users () lists ! boost ! org>
Date:       2024-01-08 19:52:40
Message-ID: MW4PR15MB4522BCF32D91BBDBCDE16C52F46B2 () MW4PR15MB4522 ! namprd15 ! prod ! outlook ! com
[Download RAW message or body]

Hello,

I am using the Boost Redis library to write to a local Redis server and wou=
ld like to inquire about how a single connection can handle concurrent call=
s. I have several C++ classes that have their own Boost.Redis connections, =
but this is leading to ASIO-related hanging behavior that is difficult to d=
ebug. I would like to simplify the design by initializing only one connecti=
on that can be used by all of these classes instead. I know the "async_exec=
" method supports concurrency but I wonder if this might cause any future i=
ssues with larger workloads.

Thank you in advance.

Sincerely,
Samarah Uriarte



[Attachment #3 (text/html)]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} \
</style> </head>
<body dir="ltr">
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, \
Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof"> \
Hello,</div> <div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, \
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" \
class="elementToProof"> <br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, \
Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof"> \
I am using the Boost Redis library to write to a local Redis server and would like to \
inquire about how a single connection can handle concurrent calls. I have several C++ \
classes that have their own Boost.Redis connections, but this is leading to \
ASIO-related  hanging behavior that is difficult to debug. I would like to simplify \
the design by initializing only one connection that can be used by all of these \
classes instead. I know the &quot;async_exec&quot; method supports concurrency but I \
wonder if this might cause any  future issues with larger workloads.</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, \
Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof"> \
<br> </div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, \
Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof"> \
Thank you in advance.</div> <div style="font-family: Aptos, Aptos_EmbeddedFont, \
Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, \
0, 0);" class="elementToProof"> <br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, \
Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof"> \
Sincerely,</div> <div style="font-family: Aptos, Aptos_EmbeddedFont, \
Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, \
0, 0);" class="elementToProof"> Samarah Uriarte</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, \
Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof"> \
<br> </div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, \
Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof"> \
&nbsp;</div> </body>
</html>



_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users

--===============8792820118993413051==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic