Questions tagged [go-micro]

Pluggable RPC framework for writing microservices in Go (golang).

Pluggable RPC framework for writing microservices in Go (golang). It's part of the Micro toolkit.
go-micro on GitHub.

48 questions
2
votes
3 answers

Unable to figure out missing protoc command from udemy course

Problem: I have been coding along to a Golang microservices course on Udemy the last week or so and have encountered a problem. Basically the instructor has introduced us to Go-Micro and RPC by writing a .proto file. Now I have a bit of experience…
geostocker
  • 1,190
  • 2
  • 17
  • 29
1
vote
0 answers

Unable to log in to go micro's remote server

Description Hello, I have been following a tutorial that sets up my own microservice in the cloud with go micro and kubernetes. The tutorial has a kubernetes cluster as a prerequisite, so I followed another tutorial by the same author to create a…
1
vote
0 answers

Error when use Go-Micro with docker-compose

I have used micro v3 to write my service. It work on local but I want to use docker-compose to deploy my service. My service is pubsub example but I got error: file=grpc/grpc.go:954 level=error Server register error:…
Programmer dude
  • 167
  • 1
  • 5
  • 23
1
vote
1 answer

go get -u creates a go.mod that fails

Following this example of using go-micro. When I do a go mod init github.com/username/blahblah followed by a go get -u I get this in my go.mod file: require ( github.com/coreos/etcd v3.3.21+incompatible // indirect …
Dean Schulze
  • 9,633
  • 24
  • 100
  • 165
1
vote
2 answers

Go-micro rabbit mq plugin - publish message with priority

Since RabbitMQ version 3.5.0 priority queues are supported - https://www.rabbitmq.com/priority.html The queue can be declared if x-max-priority argument is passed during the queue creation. I can successfully declare a queue with priority…
Vladimir Hraban
  • 3,543
  • 4
  • 26
  • 46
1
vote
2 answers

How to handle multiple endpoints via grpc-gateway?

I'm sure all the services are working properly. I have the code below: This snippet is used for registering two endpoints. func RegisterEndpoints(ctx context.Context, c *utils.AppConfig, r resolver.Builder) (http.Handler, error) { var err error …
Rex Tsao
  • 65
  • 1
  • 13
1
vote
1 answer

How to config docker's exposed port for an micro service app?

Excuse me.I've learned of go-micro and know micro service client has no need to know which ip and port the micro service is deployed at.When a service runs itself, the port is randomly set, and the service is located by its service name,like…
fwhez
  • 561
  • 4
  • 10
1
vote
1 answer

Consume from one broker and produce to another using Go Micro

I am trying to write a microservice using the Go Micro framework which is going to consume from a RabbitMQ broker and Write to another. Go Micro has a RabbitMQ plugin however it seems that if one wants to use the Go Micro abstractions (Such as…
Alexandre Thenorio
  • 2,288
  • 3
  • 31
  • 50
1
vote
0 answers

NATS Only receiving messages after subscription

I'm trying to communicate with a NATs server in the cloud with the "github.com/nats-io/go-nats" package. I`m setting it up like this: nc, err := nats.Connect(natsServerAddress) if err != nil { log.Fatal(err) } else { natsConn = nc } After…
patreu22
  • 2,988
  • 4
  • 22
  • 31
1
vote
1 answer

go-micro kubernetes greeter example - unable to reach greeter api service

I'm trying to get this go-micro greeter example working on Kubernetes https://github.com/micro/examples/tree/master/greeter I can run this locally in docker fine. However when I attempt to access the greeter api service via Kubernetes…
Lee
  • 11
  • 3
1
vote
1 answer

Authentication and authorisation in microservice architecture

I have multiple services: User Post Comment Authentication GraphQL endpoint And let's say they are connected together like this: All services are communicating through gRPC on a closed nettwork and the Authorization is done using jwt…
Murillio4
  • 485
  • 5
  • 17
0
votes
1 answer

[go-micro]How to set a scheduled task?

I want to use the go-micro v4 framework to write a scheduled task. But I can't find a suitable example in the official document. Does anyone provide me with an example for my reference?
FamousMai
  • 1
  • 1
0
votes
0 answers

How I can use http with go-micro?

I created helloword micro service like tutorial in https://github.com/go-micro/cli , but this server use gRPC protocol. I have tried use API like tutorial in https://github.com/go-micro/api , but file "api" was not created. I copied this file from a…
John
  • 9
  • 1
0
votes
0 answers

Go-micro v3 on mac micro signup Failed to connect to micro server at 127.0.0.1:8081

Here I try to run a test example of go-micro-v3 locally. I have set micro env set local And I fail to see the properly micro service When I run micro service, it shows 2022-12-18 15:55:29 file=service/service.go:118 level=info Service [mucp]…
Li Yann
  • 11
0
votes
0 answers

go micro blob.db error when executing micro run . in Windows 10

I wrote a basic micro service. Both micro new and make proto work fine. All dependencies installed. micro server also running, BUT, when I do cd myservice and then micro run . ( I have local env by the way) this errors shows: Rpc error: code =…