lighttpd + fastcgi built a server how to preserve the status of server

Requirements: server-side has much static files, there is much use of c + + to prepare the operational components necessary to carry out these functions on the external packaging Published Service, server-side state required to preserve the client (similar to the function of session) and some server-side state, and server functionality may be enhanced such as web management interface to add and so on;

Preliminary solutions are: using lighttpd + fastcgi to set up the server, fastcgi process can be directly used c + + to write, this can directly call the c + + to prepare the business components, but is too much trouble to add the server to the state of the maintenance function, because fastcgi the process of implementation are many, it is necessary to share state, then we must carry out inter-process communication, the initial ideas are the introduction of a memory database, the state of information are put on the inside, if you want to add web management interface using php to write, But the overall feeling in this way is not very easy to achieve, especially with c + + written in the late fastcgi process maintenance and upgrades.

There is also a mind to use java to write server are using JNI to call c + + components, state management would not have to worry about, but the c + + components into a JNI is not a small workload, so are more trouble

Perhaps the basic situation, and I hope everyone will listen to recommendations, I would like to thank

Another: lighttpd / Fastcgi approach can be used to deploy RoR, do not know if this deployment is how the fastcgi implementation, and in server-side are how to maintain state if it is possible to learn from? Since I have never used RoR, so would like to ask everyone

分类:Ruby 时间:2009-02-28 人气:863
blog comments powered by Disqus


  • Application Server JVM memory management and optimization of the SUN JVM memory management (under) 2010-04-16

    Analysis: Jason SHChen How to adjust the JVM parameters of the system in a specific hardware configuration to achieve optimal performance. Part SUN JVM through the memory management mechanism of introduction, we all know that the SUN JVM memory into

  • Application Server JVM memory management and optimization of the SUN JVM memory management (on) 2010-04-16

    Analysis: Jason SHChen Glossary: JVM (Java Virtual Machine): Java virtual machine, all Java programs are run in the Java virtual machine. Metadata: the middle finger in this class and interface definitions used to describe the data. In my J2EE system

  • Nginx + Mongrel Cluster deployment of ROR in CentOS 2010-04-16

    Nginx + Mongrel Cluster deployment of ROR in CentOS I, a basic environment set up, what is CentOS CentOS is RHEL (Red Hat Enterprise Linux) and then compile the source code product, known as 100% compatible re-established, and removed all Red Hat tra

  • [Change] PHP multi web server write mysql database to share SESSION 2010-08-29

    PHP multi web server to share data SESSION (session data is written to mysql database) First, the problem of origin Larger number of sites, they usually have several servers, each server runs a different function modules, the use of two different dom

  • Win32 process communication 11 ways 2010-09-14

    A process with the process of communication Process is loaded into memory and ready to implement the procedure, each process has private virtual address space, of the code, data, and it can make use of system resources (such as files, pipes etc.) for

  • Embedded Linux, web video server of 2010-12-08

    With the embedded processor and the extensive application of open source Linux, a variety of video services in embedded systems gradually developed. 1. Introduction With the multimedia technology, video compression coding technology, network communic

  • Project experience --- Android platform process communication (IPC) should pay attention to the problem 2010-12-27

    Recently busy with a project involving the Android platform, inter-process communication (IPC) issues, the structure of the problem due to the project encountered a series of data transmission, synchronization problems, people hurt `~~~~~~~ eggs ~, o

  • Java Web Application Server Comparison 2010-12-30

    Transfer from: Case] [Editor Tomcat is an open source, run servlet and JSP Web application software application software based on Java Web container. Subprojects by the Apache-Jakarta Tomcat support from the open so

  • SQL Server, Oracle, DB2 database, SQL statements more 2010-04-21

    SQL Server, Oracle, DB2 database, SQL statements more 1.1.1 fetch the first n records SQL Server: Select top n * from xtable Oracle: Select * from xtable where rownum <= n DB2: Select * from xtable fetch first n rows only 1.1.2 take the current date

  • Image server and WEB application server separate from simple programs 2010-08-06

    Simply explain the principle of their own to explore the other it:) One or two domain names: and Second, in the www domain name server upload: up.html <form name="myform" action="save.php?action=ok" met

iOS 开发

Android 开发

Python 开发



PHP 开发

Ruby 开发






Javascript 开发

.NET 开发



Copyright (C), All Rights Reserved. 版权所有 闽ICP备15018612号

processed in 0.195 (s). 12 q(s)