Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9253261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:10:28+00:00 2026-06-18T11:10:28+00:00

Our team is implementing a secure multi-layered peer-to-peer protocol which establishes connections between nodes

  • 0

Our team is implementing a secure multi-layered peer-to-peer protocol which establishes connections between nodes over multiple intermediate ‘hops’ using Boost/C++.

We are currently locked in a debate on how to implement the protocol design, namely, as a asynchronous single-threaded or synchronous multi-threaded architecture.

I do not want to bias the question by enumerating pros and cons but I am keenly interested in the experience of the StackOverFlow community in such matters and which approach they would favour?

I realise that this is an open question so ideally the answer would not be based on anecdotal evidence but derived from some empirical or analytical basis.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T11:10:29+00:00Added an answer on June 18, 2026 at 11:10 am

    I would recommend asynchronous for two reasons:

    • you don’t need to deal with thread interactions, which are always a minefield of bugs;
    • you can use the Boost.Asio library to handle all the low-level scheduling, connection management, etc. This also makes it easy to use more than one thread if you need to for performance reasons.

    Synchronous could be more straightforward if the connections are independent, so that no threads have to share mutable state. If you can’t make that guarantee, and be sure that it will not change in the future, then I would choose asynchronous.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our team builds and owns a webservices framework. Other teams which actually build the
Our team is currently working on a large project which makes heavy use of
My manager has recently asked my team and I for our input about implementing
Our team has recently inherited code which is extremely disorganized. As a result, my
Our team has created an ASP website which uses reportviewer control for rendering reports
Our team is developing a rather big ASP.NET web project which initially started in
Our team is now beginning to look at jumping from 2.0 to 3.5 and
Our team is just ramping up to use source control through SVN. We are
Our team recently upgraded to TeamCity 4.5.4 but we're having trouble with TeamCity running
Our team has just started developing for the Sitecore CMS. We find that after

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.