内容简介:Opinionated microservice kit to help developers to build microservices with go.A pace/bricks microservice is:
PACE Bricks
Opinionated microservice kit to help developers to build microservices with go.
Opinions
A pace/bricks microservice is:
- built as a docker container
- deployed into a kubernetes cluster
- support for the termination log
- configured using environment variables ( TWELVE-FACTOR APP )
- monitored using prometheus
- reports errors to sentry
- samples traces to jaeger
- logs to stdout using json deployed kubernetes otherwise human readable
- offers health endpoints
- connects to backend services
- postgres (logging, metrics, tracing, health)
- redis (logging, metrics, tracing, health)
- s3 (logging, metrics, tracing, health)
- http (logging, metrics, tracing, retries)
- provides two commands control and daemon
- provides a RESTful API
- code is generated from the OpenAPIv3 spec
- authenticated via OAuth2
- encoded using json:api
- that supports logging , tracing and metrics
Install
go get github.com/pace/bricks/cmd/pb
Usage
pb -h
Contributing
Read our contributors guide .
Requirements
- A working go installation
- A working git installation
Testing
- Use
make testto test without dependencies - Use
docker-compose run testserver make integrationto test with dependencies - Use
make testserverto start a testserver that will be started with dependencies. In order to update the server one need todocker-compose restart testserver
Environment variables for the pb command
| Variable | Description |
|---|---|
PACE_BRICKS_EDITOR |
The path to the editor that should be used for opening a project. Defaults to $EDITOR . |
PACE_BRICKS_PATH |
The path where new project should be created. Defaults to $HOME/PACE . |
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Bulletproof Web Design
Dan Cederholm / New Riders Press / 28 July, 2005 / $39.99
No matter how visually appealing or packed with content a Web site is, it isn't succeeding if it's not reaching the widest possible audience. Designers who get this guide can be assured their Web site......一起来看看 《Bulletproof Web Design》 这本书的介绍吧!