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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:44:24+00:00 2026-05-15T20:44:24+00:00

I’m trying to build a server that will handle many concurrent connections to iPhone

  • 0

I’m trying to build a server that will handle many concurrent connections to iPhone clients without multi-threading. I will be sending messages to all clients approximately every 10-30 seconds, but most messages will be identical or very similar and easy to sort. Given the setup of high-concurrency but low need for data sorting, I am trying to find the best solution for my server setup.

I’ve been looking at event-driven packages such as EventMachine, Twisted, node.js etc. It seems that Twisted and EventMachine are basically a toss-up, and node is probably faster but also not quite ready for full development. That leads me to a few questions:

  1. Is Node unfit for critical development simply because it’s API’s are lacking and it is not fully flushed out? Or might there be bugs that will make my development hell?

  2. I’m considering writing the code in C, since there will be very little disk I/O and most of it should be easily cached. If so, it seems I should use non-blocking UDP sockets and handle the ACKing myself. I’ve looked at poll(), select(), epoll(), but am having a hard time determining which is best and how exactly to invoke them. Any thoughts?

  3. If I use Twisted or EventMachine (is there a difference other than language? I don’t know either yet, so I’m a blank slate), should I try TCP or UDP? Could these languages handle sending 1kB to 10,000 clients in less than a second?

I’d appreciate any insight/suggestions, right now I’m spinning my wheels madly around too many documentations and blogs, and don’t have the programming background to sort through it (at least with any sanity left).

Thanks!
Mike

  • 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-15T20:44:25+00:00Added an answer on May 15, 2026 at 8:44 pm

    I suggest you to develop your server in C on Mac OS X snow leopard, using kqueue() and kevent() or kevent64() to multiplex incoming client connections.

    Take a look at the freely available source code of IRC servers. These servers handle even more than 10K clients concurrently.

    Start reading this page. Even though it is a bit outdated, it is still a good reference to start with.

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

Sidebar

Related Questions

No related questions found

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.