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 6727947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:06:38+00:00 2026-05-26T10:06:38+00:00

Is possible to have asynchronous and synchronous action methods in an AsyncController ? Is

  • 0

Is possible to have asynchronous and synchronous action methods in an AsyncController? Is there any drawback doing this?

The reason is that an asynchronous operation makes sense for a time consuming operation, but does not make sense for return a form in HTML.

For example, I have a page that generates a file. The action method that returns the form with the inputs has almost no logic, but the action method that receives the POST, send it to another web service and relay the response takes some time, so it will make sense to do it asynchronously.

I could put those methods in separated controllers, one synchronous and another synchronous, but I would like to keep them together.

Cheers.

  • 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-26T10:06:38+00:00Added an answer on May 26, 2026 at 10:06 am

    Is possible to have asynchronous and synchronous action methods in an AsyncController?

    Yes.

    Is there any drawback doing this?

    Not really.

    The reason is that an asynchronous operation makes sense for a time consuming operation

    time consuming operation and I/O intensive so that you can benefit from I/O Completion Ports. If you have a CPU time consuming operation that you are running in a separate thread you get strictly no benefit from async controllers. At the contrary it will make things worse.

    For example, I have a page that generates a file. The action method
    that returns the form with the inputs has almost no logic, but the
    action method that receives the POST, send it to another web service
    and relay the response takes some time, so it will make sense to do it
    asynchronously.

    OK, web service call is an I/O intensive operation => you will get benefit from an async controller. You could have the two actions in this case on the same async controller.

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

Sidebar

Related Questions

Is it possible to have an AsyncController that has a GET and POST action
Is it possible to have cached queries asynchronous, so that no frontend user actually
I have an Ajax call that currently needs to be synchronous. However, while this
I have a method that triggers an asynchronous request in the model and passes
Do any .Net O/R (object/Relational) Mappers provide Asynchronous methods out of the box? I
I have an Android app that communicates with a server via asynchronous socket connection
We have an asynchronous task that performs a potentially long-running calculation for an object.
I have written a TCP server using the Socket class's asynchronous/IOCP methods, BeginSend()/BeginRead()/etc. I
How to ensure that the exception thrown by @Asynchronous method from EJB 3.1 methods
I have a long running (4-10 second) MVC action that runs a report from

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.