New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/presnalex/grpc-layout

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/presnalex/grpc-layout

  • v0.0.0-20230512090710-c582209586e4
  • Source
  • Go
  • Socket score

Version published
Created
Source

GRPC microservice layout

An example that may be helpful for building your own microservice on golang.

Technology stack used in this API:

  • A version of go micro framework for microservice development https://github.com/unistack-org/micro
  • Consul for configuration of this API in JSON format (available here http://localhost:8500/ui/dc1/kv/go-micro-layouts/ if this launched within a quickstart)
  • Prometheus metrics for monitoring are available at /metrics endpoint
  • Unique request id is generated for every request that simplifies a search process in logs.
  • Healthchecks /live and /ready for monitoring a state of the service instance.

Try this out (quickstart)

Launch this with just a one single command (for representation):

docker run --rm -it -e consul_host=http://host.docker.internal:8500 -v /var/run/docker.sock:/var/run/docker.sock -p 8080:8080 -p 9090:9090 $(docker build -f .quickstart/Dockerfile -q .) sh /grpc-layout/.quickstart/quickstart.sh

FAQs

Package last updated on 12 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc