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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:45:49+00:00 2026-06-16T18:45:49+00:00

I have an ASP.NET Web API server, that have to communicate with different applications

  • 0

I have an ASP.NET Web API server, that have to communicate with different applications on different platforms. And now I want to create a method that would be something like a callback: client application subscribes to it and waits until server fires a message.

Example:
Many users are waiting until new product will be available in store – they subscribe to this "event". When product arrives in store – every customer receives a message, which have to be handled in some case.

  1. Users send a request "Subscribe"
  2. Server receive a request "Product available!"
  3. Server sends every user a message with product details.
  4. User’s application processes the message

I tried to find some information about callbacks or duplex in ASP.NET Web API, but the one advice – it’s better to use WCF for this approach.

Solutions

  • In every client application create something like timer, that every N seconds sends a request "Is product available?" until gets "false". When the response will be true – send a message "Get product details". It’s causes a lot of traffic and if there will be many clients with these timers – it would be something bad, isn’t it?
  • Create a small callbacks-server (maybe WCF). But in this case would be a lot of problems with communication between this server and apps on different platforms.
  • Maybe there are some solution in ASP.NET Web API, that i missed.

If you have some ideas how i can solve this problem, please give me an advice.

Thanks for help.

  • 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-16T18:45:50+00:00Added an answer on June 16, 2026 at 6:45 pm

    Looks like you want push notifications from your server – which, in this case, can be achieved by combining SignalR with Web API.

    Brad Wilson has a great example on this:

    1. code here – https://github.com/bradwilson/WebstackOfLove

    2. NDC Oslo talk explaining all this – http://vimeo.com/43603472

    In short, whenever you add new item to the Web API, you can notify all the connected (subscribed) clients:

    public void PostNewItem(ToDoItem item)
            {
                lock (db)
                {
                    // Add item to the database
                    db.Add(item);
    
                    // Notify the connected clients
                    Hub.Clients.processItem(item);
                }
            }
    

    SignalR will invoke the processItem function on the client.

    Alternatively, you might want to look into JavaScript SSE and Web API PushStreamContent but that is much more low level and SignalR abstracts a lot of this type of stuff for you so it might be more complicated to deal with.

    I blogged about this approach here http://www.strathweb.com/2012/05/native-html5-push-notifications-with-asp-net-web-api-and-knockout-js/

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

Sidebar

Related Questions

I have a ASP.NET MVC4 web api that uses fluent NHibernate, but when I
I have used asp.net so far to create personal web applications, for example, an
All, I have a ASP.NET Web API project that is making a REST call
I have a POST ASP.Net Web Api method adapted from A guide to asynchronous
I have an ASP.NET Web API (version 4) REST service where I need to
Using the ASP.NET Web-Api, I have the following POST setup in my controller. When
I have the following action in my ASP.NET Web API: public IEnumerable<Car> carssOfUser(int id,
I have a layered web application that I built with ASP.NET MVC 4, WebAPI
I have a asp.net web application that uses C#. It logs in on a
I have an asp.net web app. I want to separate out a particular section

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.