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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:56:47+00:00 2026-06-07T13:56:47+00:00

I have a .net winform application that I want to allow users to connect

  • 0

I have a .net winform application that I want to allow users to connect to via PHP.

I’m using PHP out of personal choice and to help keep costs low.

Quick overview:

People can connect to my .net app and start a new thread that will continue running even after they close the browser. They can then login at any time to see the status of what their thread is doing.

Currently I have come up with two ways to do this:

Idea 1 – Sockets:

When a user connects for the first time and spawns a thread a GUID is associated with their “web” login details.

Next time PHP connects to the app via a socket PHP sends a “GET.UPDATE” command with their GUID which is then added to a MESSAGE IN QUEUE for the given GUID.

The .net app spawned thread is checking the MESSAGE IN QUEUE and when it sees the “GET.UPDATE” command it then endcodes the data into json and adds it to the MESSAGE OUT QUEUE

The next time there is a PHP socket request from that GUID it sends the data in the MESSAGE OUT QUEUE.

Idea 2 – Database:

Same Idea as above but commands from PHP get put into a database

the .net app thread checks for new IN MESSAGES in the database

if it gets a GET.UPDATE command it adds the json encoded data to the database

Next time PHP connects it will check the database for new messages and report the data accordingly.

I just wonderd what of the two above ideas would be best. Messing about with sockets can quicly become a pain. But i’m worried with the database ideas that if I have 1000’s of users we will have a database table that could begin to slow down if there is alot of messages in the queue

Any advice would be appricated.

  • 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-07T13:56:50+00:00Added an answer on June 7, 2026 at 1:56 pm

    Either solution is acceptable, but if you are looking at a high user load, you may want to reconsider your approach. A WinForms solution is not going to be nearly as robust as a WCF solution if you’re looking at thousands of requests. I would not recommend using a database solely for messaging, unless results of your processes are already stored in the database. If they are, I would not recommend directly exposing the database, but rather gating database access through an exposed API. Databases are made to be highly available/scalable, so I wouldn’t worry too much on load unless you are looking at a low-end database like SQLite.

    If you are looking at publicly exposing the database and using it as a messaging service for whatever reason, might I suggest Postgresql’s LISTEN/NOTIFY. Npgsql has good support for this and it’s very easy to implement. Postgresql is also freely available with a large community for support.

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

Sidebar

Related Questions

I have a .NET application that was written in C# and VB.NET using WinForms.
i have a .net winforms application that i want to be soundless. occasionally when
I have a .NET winform application that writes an XML data file, but I
I have a C#.NET Winform Application, using which, printing of bills etc. would be
I have a .net 2.0 WinForms application that uses .net remoting to connect to
I have a .net WinForms 2.0 application that has an image library of about
I have a WinForms application written in C# for .NET 3.5 that needs to
I'm developing a .NET application that will have both a WinForms and a Silverlight
I have put together a .net winform application which consumes a wcf service exposed
I have developed a WinForm Application with VB.Net (VS2010) having Office 2010 Professional Installed,

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.