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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:28:36+00:00 2026-05-26T23:28:36+00:00

I am trying to write a client-server app. Basically, there is a Master program

  • 0

I am trying to write a client-server app.

Basically, there is a Master program that needs to maintain a MySQL database that keeps track of the processing done on the server-side,

and a Slave program that queries the database to see what to do for keeping in sync with the Master. There can be many slaves at the same time.

All the programs must be able to run from anywhere in the world.

For now, I have tried setting up a MySQL database on a shared hosting server as where the DB is hosted

and made C++ programs for the master and slave that use CURL library to make request to a php file (ex.: http://www.myserver.com/check.php) located on my hosting server.

The master program calls the URL every second and some PHP code is executed to keep the database up to date. I did a test with a single slave program that calls the URL every second also and execute PHP code that queries the database.

With that setup however, my web hoster suspended my account and told me that I was ‘using too much CPU resources’ and I that would need to use a dedicated server (200$ per month rather than 10$) from their analysis of the CPU resources that were needed. And that was with one Master and only one Slave, so no more than 5-6 MySql queries per second. What would it be with 10 slaves then..?

Am I missing something?
Would there be a better setup than what I was planning to use in order to achieve the syncing mechanism that I need between two and more far apart programs?

  • 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-26T23:28:36+00:00Added an answer on May 26, 2026 at 11:28 pm

    I would use Google App Engine for storing the data. You can read about free quotas and pricing here.

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

Sidebar

Related Questions

I'm trying to write a client/server program with threads. I close the socket once
I'm trying to write a scorekeeping app in Java that allows a server application
I'm trying to write a Client/Server using Twisted that will allow the client to
I am trying to write a basic client-server program to allow the client to
I'm trying to implement a client server app which a Server program has a
I'm trying to create an Android client for a client/server app that has previously
I'm trying to write a client-server application in Java with an XML-based protocol. But
I am trying to write a unit test for a client server application. To
I'm trying to write a client-server console application on C# using UDP. And i
I'm trying to write an Imap4 client. For that I use a SslStream to

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.