Source code for tutorial "How to develop Go gRPC microservice with HTTP/REST endpoint, middleware, Kubernetes deployment, etc."
Source code for Part 1
Source code for Part 2
Source code for Part 3
Source code for tutorial "How to develop Go gRPC microservice with HTTP/REST endpoint, middleware, Kubernetes deployment, etc."
License: Apache License 2.0
If i am reading Standard Project Layout repo right, then /pkg/*
contains only reusable packages like /pkg/errors
, /pkg/logger
, /pkg/metrics
, /pkg/tracing
, etc... those are packages which could be imported in other projects (public).
But, it looks to me that /pkg/service/v1/todo-service.go
is something that is not reusable and should sit in /internal/todo/todo-service.go
?
I know that "it depends" and "use whatever suits your needs" etc, etc... just trying to put various pieces together to layout structure for CQRS microservice architecture. Want to understand where the actual per-service logic should go and how to in general structure all those services.
Getting below error while the executing the protoc-gen.cmd file:-
protoc-gen-grpc-gateway: program not found or is not executable
— grpc-gateway_out: protoc-gen-grpc-gateway: Plugin failed with status code 1.
protoc-gen-swagger: program not found or is not executable
— swagger_out: protoc-gen-swagger: Plugin failed with status code 1.
Hi Aleksandr,
I am running through your medium post for this and keep getting an error when I try to execute ./third_party/protoc-gen.sh. I get the error ./third_party/protoc-gen.sh: command not found.
I have check that protoc --version is working and the protoc-gen-go is in the bin. The go/bin is in the $PATH.
Not sure what else is going wrong here, any ideas?
Best
Chris
Hi Aleksandr,
I'm getting reminder field has invalid format ->timestamp: nil Timestamp when trying to start the client. I've tried troubleshooting this, all the code is correct and there are very few docs online.
B.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.