Giter Club home page Giter Club logo

plutos's Introduction

plutos

CircleCI

ENV Description
PORT application port i.e: ":8080"
DRIVER s3 / sqs / stdout / stub
ENABLE_COMPRESSION true / false
MAX_BUFFER_TIME_MILLISECONDS must be >=1
S3_BUCKET S3 bucket name
S3_PREFIX Mandatory prefix inside the bucket (no / as prefix or suffix)
SQS_ENDPOINTS Comma separated full path urls to SQS quues
SQS_BUFFER bytes to keep in memory before flushing to sqs max is 256 KB recommended is multiples of 64KB
AWS_ACCESS_KEY_ID if running in a docker without AWS access or outside of AWS must provide credentials
AWS_SECRET_ACCESS_KEY if running in a docker without AWS access or outside of AWS must provide credentials

How to run

docker run --network=host \
       -e PORT=:8080 \
       -e DRIVER=s3 \
       -e S3_REGION=<REGION> \
       -e S3_BUCKET=<BUCKET> \
       -e S3_PREFIX=data \
       -e MAX_BUFFER_TIME_MILLISECONDS=60000 \
       -e ENABLE_COMPRESSION=true \
       -e AWS_ACCESS_KEY_ID=<AWS_KEY> \
       -e AWS_SECRET_ACCESS_KEY=<AWS SECRET>  \
       -e SQS_QUEUE=<SQS_ENDPOINT>
       maxkuder/plutos:0.2.1

from source:

go get ./... && go build -o plutos cmd/fasthttp.go
chmox +x plutos
./plutos
  • running with network=host increases performance by up to x2

Benchmarks

i7 6700K @ 4.0Ghz
GOMAXPROCS=6
wrk -t2 -c100 -d10s "http://127.0.0.1:8080/e?test=me"
img.png

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.