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

  • Home
  • SEARCH
  • 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 6826913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:12:15+00:00 2026-05-26T22:12:15+00:00

In synchronous model, when a client connects to the server, both the client and

  • 0

In synchronous model, when a client connects to the server, both the client and server have to sync with each other to finish some operations.

Meanwhile, the asynchronous model allows client and server to work separated and independently. The client sends a request to establish a connection and do something. While the server is processing the request, the client can do something else. Upon completion of an operation, the completion event is placed onto a queue in an Event Demultiplexer, waiting for a Proactor (such as HTTP Handler) to send the request back and invoke a Completion Handler (on the client). The terms are used as in boost::asio document The Proactor Design Pattern: Concurrency Without Threads.

By working this way, the asynchronous model can accepts simultaneous connections without having to create a thread per connection, thus improve overall performance. In order to achieve the same effect as asynchronous model, the first model (synchronous) must be multi-threaded. For more detail, refer to: Proactor Pattern (I actually learn proactor pattern which is used to asynchronous model from that document. In here it has description on a typical synchronous I/O web server).

Is my understanding on the subject correct? If so, which means the asynchronous server can accepts request and return results asynchronously (the first connection request the service on web server does not need to be the first to reply to)? In essence, asynchronous model does not use threading (or threading is used in individual components, such as in the Proactor, Asynchronous Event Multiplexer (boost::asio document) component, not by creating an entire client-server application stack, which is describe in the multi-threaded model in Proactor Pattern document, section 2.2 – Common Traps and Pitfalls of Conventional Concurrency Models).

  • 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-05-26T22:12:16+00:00Added an answer on May 26, 2026 at 10:12 pm

    The Proactor model assumes splitting the network session process in a subtasks like: resolving hostname, accepting or connecting, reading or writing some part of information, closing connection – and allows you to switch between subtasks from different sessions. Whereas, the Reactor model sees the network session process as a (almost) single task.

    The absolute Proactor advantages:

    • The performance is boosted because of the task “outsourcing”. For example, you can send resolution request to the DNS and wait 5 minutes for answer doing nothing (Reactor) – or you can do other stuff while waiting (Proactor).

    The absolute Proactor disadvantages:

    • The performance is decreased because of the task switching, which means that for the single session you execute more code (Proactor) than it should be (Reactor).

    But the overall performance usually is measured in a number of “satisfied” clients per time period. So, the advantages of Proactor vs. Reactor depend on the situation. Here goes some examples.

    1. HTTP server. The client wants to see something in his browser window. He doesn’t need to wait before the whole page is loaded to see the first pieces of text. The Proactor is effective, since the partial page loading is faster than the whole page loading. Still the whole page is loaded about the same time as in the Reactor model.

    2. Low-latency game server. The client wants to get the complete result of his command as quick as possible. The Reactor is effective, since there are no subtasks like partial reading or writing – the client won’t see anything until he reads the full response. So, the Reactor won’t do additional switches between subtasks and at each moment it’s guaranteed that some client gets progress on his command, while the Proactor will force all of the clients wait each other unpredictable time.

    The multi-threading can give you a linear acceleration in both cases.

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

Sidebar

Related Questions

I'm developing an Asynchronous Game Server using .Net Socket Asynchronous Model( BeginAccept/EndAccept...etc.) The problem
I have implemented a client-server transferring from Windows desktop application to iPhone App. I
I have a client-server project and was searching for the better way to handle
I have a method that triggers an asynchronous request in the model and passes
I have a server and a client application, here's how it's currently implemented: The
I am trying to conceptually work through a model for a client-server socket application
I've read that Silverlight 2.0 imposes by design an asynchronous model when communicating with
I'm trying to model a asynchronous job processing framework using MailboxProcessor. My requirements are
For some reason, onreadystatechange call back function is not being called in asynchronous mode.
Events are synchronous in C#. I have this application where my main form starts

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.