Categorygithub.com/tullo/microservice
module
0.0.0-20241218184505-25a062d0facb
Repository: https://github.com/tullo/microservice.git
Documentation: pkg.go.dev

# README

Microservice

Add .proto file. Scaffold Go code. Implement gRPC service. Done.

1. make
2. make docker
3. docker-compose up -d
4. ./test-service.sh
5. ./test-benchmark-service.sh

Install Drone CI

https://docs.drone.io/cli/install/

curl -L https://github.com/harness/drone-cli/releases/latest/download/drone_linux_amd64.tar.gz | tar zx
sudo install -t /usr/local/bin drone && rm drone

Build and push dev image

cd docker/build && make && make push

SQL batch insert

Get latest sqlx module version that supports batch insert.

go get github.com/jmoiron/sqlx@master

Scaffold and compile using Drone CI

make

Build Go binaries and Docker service images

# install figlet
sudo apt install figlet
# build all docker images
make build && make docker
# build specific docker image
make build && make docker.stats

Elastic APM

sudo sysctl vm.max_map_count=512000
docker-compose build
docker-compose up -d
docker-compose logs -f apm

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author