Integrate redtamarin with nGINX Unit


I would like to start a discussion about the feasability of integrating AS3 in nGinx based on their announcement.


Without unit, the way to make redtamarin works with nginx is to use fcgi.
There is no fcgi library yet for redtamarin but it will come.

And for unit, well… if it can works with Go it can certainly works with Redtamarin too.

Quickly looking at the doc

    "type": "go",
    "working_directory": "/www/chat",
    "executable": "bin/chat_app",
    "user": "www-go",
    "group": "www-go"

and from unit.example-go-app

package main

import (

func handler(w http.ResponseWriter, r *http.Request) {
    w.Header().Add("Content-Type", "text/plain");

    fmt.Fprintf(w, "Method : %s\n", r.Method)
    fmt.Fprintf(w, "URL    : %s\n", r.URL.Path)
    fmt.Fprintf(w, "Host   : %s\n", r.Host)

func main() {
    http.HandleFunc("/", handler)
    unit.ListenAndServe("8000", nil)

also they do plan to supports things like node.js

So I don’t have the details yet but yeah it should be possible to make redtamarin works with all that.