golang-fast-producer

command
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

README

golang-fast-producer

In this example, we'll push events to Styx at a very high rate using the Styx protocol in Golang.

Usage

Install dependencies

go get github.com/dataptive/styx

Ensure Styx is running and create a "fast" log

curl localhost:7123/logs -X POST -d name=fast

Setup a watch on the log to monitor its growth

watch curl localhost:7123/logs/fast -s

In another terminal, run the producer

go run main.go

When you're done, it may be a good idea to free disk space by deleting the log

curl localhost:7123/logs/fast -X DELETE

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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