edoceo / httpubsub

Basic Pub/Sub over HTTP/S

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTTP Pub Sub

It's an HTTPS server that has a blocking read-write pipe based on URL paths. Effectively, it's just paths connected via channel.

Installation

git clone
go build
go build -ldflags="-s -w"

Running

You can run it using some of these options. To run in the background use nohup and some redirection

./httpubsub --port=8080
./httpubsub --port=8080 --cert=[some file] --cert-key=[some other file]
nohup ./httpubsub 2>&1 >httpubsub.log &

Inspiration

A user @anderspitman posted an awesome creation called PatchBay on Hacker News. Then someone asked for source. Then after seeing the service I thought: "it's just channels" And I posted that I expected to see a clone in Go real soon. Then an associate called me out to post it.

Alternatives

About

Basic Pub/Sub over HTTP/S

License:MIT License


Languages

Language:Go 96.3%Language:Shell 3.7%