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

分类:Ruby 2009-02-28 来源:CodeWeblog.com 人气:772

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

分享到:
blog comments powered by Disqus

相关文章

  • Advanced Linux Programming Chapter: inter-process communication 2010-04-29

    Five inter-process communication methods: Shared memory (shared memory): allows multiple processes to read and write the same piece of memory through the address to communicate with each other. Memory mapping (Mapped memory): The similarity and shared mem

  • Chrome inter-process communication (2) 2010-03-15

    Chrome inter-process communication (2) 1. Chrome process, the basic pattern of communication Inter-process communication, called IPC (Inter-Process Communication), much of the documentation in Chrome, there is an introduction to this, in here . There are

  • Inter-process communication 2010-03-30

    A mechanism through which the operating system processes and threads exchange data and information. IPC including local mechanisms (such as Windows shared memory) or network mechanisms (such as Windows Sockets). An inter-process communication, indicating

  • Linux System Programming Study Notes (10) inter-process communication IPC 1 2010-05-04

    Inter-process communication IPC: We previously introduced process control primitives, see how to create multiple processes. But the process of interaction between the way information is presented only by fork or exec inherits the parent process, open the

  • Android components interact and inter-process communication IPC 2010-07-20

    Android in the form and the form in between the calls to each other and exchange data? Form (Activity) and the background of the service (Service) How to communicate? Based on Unix (Linux) system has a very good tradition, that is advocated by a very ligh

  • Inter-process communication [Z] 2010-10-08

    Inter-process communication Abstract With the application of the increasingly high demand in many applications where a single process can not meet people's requirements. Write multi-process / multi-threaded program as an important modern programm

  • Windows inter-process communication 2010-10-10

    Windows inter-process communication 1 file mapping File Mapping (Memory-Mapped Files) to make the process as a process of the contents of the file as a memory address range to treat. Therefore, the process does not use file I / O operation, just a simple

  • How inter-process communication Android 2010-11-29

    Android inter-process communication First, the concept Android to shield the concept of the process, the use of different components [Activity, Service] to represent communication between processes! The core mechanism for communication between the compone

  • Linux environment inter-process communication (a) 2011-04-23

    Original from http://www.ibm.com/developerworks/cn/linux/l-ipc/part1/ Description: In this series the preface the author outlines the linux process of several major means of communication. Pipes and pipe which is the earliest known inter-process communica

  • Chrome inter-process communication (4) 2010-03-15

    Chrome inter-process communication (4) 1. Chrome window controls Chrome provides its own UI controls a library of related documentation can be found here . Own words, with Chrome, I think the market's seven dirty eight factors are not easy to use grap

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.519 (s). 15 q(s)