gin-sse-simple

command module
v0.0.0-...-3e77f39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

README

gin-sse-simple

install

go get github.com/mossila/gin-sse-simple

Or clone and sync with govendor

git clone https://github.com/mossila/gin-sse-simple.git
cd gin-sse-simple/
govendor sync

usage

go run time_stream.go

use watcher for live development

cd gin-sse-simple/
watcher

website client

http://localhost:8888/

test with raw data.

curl http://localhost:8888/time/

result

event:message
data:2015-09-09 13:01:30.278489263 +0700 ICT

event:message
data:2015-09-09 13:01:31.275659459 +0700 ICT

event:message
data:2015-09-09 13:01:32.27942686 +0700 ICT

event:message
data:2015-09-09 13:01:33.279488214 +0700 ICT

event:message
data:2015-09-09 13:01:34.277990689 +0700 ICT

Performance

Tested with sse-pref

####Hardware Yeah, that my macbook.

alt tag

Connection

  • max connection is about 2555 (maybe OSX 's max connections configured?).
  • max speed about 50 MB/s (I tested on localhost. Why it has limits?)
  • max msg/s is about 80-90K msg/s.

alt tag

This image test configured with larger message size. alt tag

CPU

Cpu usage Instant drop after close all connection

alt tag

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL