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

  • Home
  • SEARCH
  • 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 48937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:21:30+00:00 2026-05-10T16:21:30+00:00

I am designing an application that is going to consist of 3-4 services that

  • 0

I am designing an application that is going to consist of 3-4 services that run as separate processes and are linked by a suitable IPC. The system is going to have a web interface and I want to use whatever webserver is there.

The web interface should be accessed under some URL that allows to have other URLs on the same webserver doing totally different things. I’m planning to use the path below that URL to specify what the web interface should do. It has facilities for use by other applications over the net and for humans to interact with in a browser.

Off the cuff, I’d work as follows:

  • make the webserver fire up a CGI process for every request it receives (like SetHandler in Apache)
  • let the CGI connect to the IPC
  • let it get whatever it needs from the backend services
  • let the CGI return HTML / XML and whatever HTTP Status based on the services’ answers

Now, what I really want is to avoid the first two steps, or if I can’t, avoid the second one, because I’m afraid that I’m wasting performance on unneccesary overhead (the requests coming from other applications might be frequent).

PHP, for example, can open persistent connections to a MySQL database that survive the script’s runtime and don’t need to be recreated next time, though I don’t know how they actually do it. Also, as I understand it, the Apache modules are loaded once when the server starts, so that might remove the first step but would tie me to Apache.

So, what are good ways to hook a handler for specific URLs into different webservers? I don’t want to handle the HTTP, otherwise I might just use a proxy setup to a second server, but it just seems to be so reinventing-the-wheel. If you think, CGI is fine and have examples where it handles large numbers of request of a similar structure, please let me know.

  • 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. 2026-05-10T16:21:30+00:00Added an answer on May 10, 2026 at 4:21 pm

    OK, I overlooked this previously. Explaining my question here brought me onto it:

    Instead of creating a new process for every request, FastCGI can use a single persistent process which handles many requests over its lifetime. — Wikipedia: FastCGI

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

Sidebar

Ask A Question

Stats

  • Questions 59k
  • Answers 59k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer The code you've posted should work, as shown in this… May 11, 2026 at 9:00 am
  • added an answer If all your UI elements are using the same Brush,… May 11, 2026 at 9:00 am
  • added an answer Set the GridView.AllowPaging property to true. Ensure that your data… May 11, 2026 at 9:00 am

Related Questions

I am designing an application that is going to consist of 3-4 services that
I am re-designing an application for a ASP.NET CMS that I really don't like.
I am now designing an SNMP library. The problem is caused by a special
I am designing a contact management system and have come across an interesting issue
I am designing a web app and I intent to embed data on an
I am having trouble defining the content-type of an element (phonenumber) whilst at the
I am designing a new System and I have a lot of Interfaces that
I am designing a game to be played in the browser. Game is a
I am designing a class for log entries of my mail server. I have
I am designing a simple internal framework for handling time series data. Given that

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.