Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Session Management with C#

Session Management with C#

Scheduled Pinned Locked Moved C#
questioncsharpsysadminperformancehelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    softwarejaeger
    wrote on last edited by
    #1

    Hello, i've build a simple server-application, which only needs to hold a TCP-Connection to the client and which listen async for data. This application also do a few tasks for each user.... So i have got a class "UserSession" in which i store the User-Informations and the TCP-Connection. This UserSession runs in a own thread. My question is now, what's with performance? Is it a problem, that every user has a own Thread? Even if no requests are incoming? The amount of data, which are receiving/sending from this server-application is very low... I need to handle a lot of user (i don't know how much) this could be 100, 1000 or even 10 000 user... So, is this a good idea to give each user a own Thread? Or how can i handle such an amount of Users and TCP-Connections very fast?

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups