microservices

Load balancer does not have available server for client: meeting

旧街凉风 提交于 2020-03-17 08:41:29
问题 While I am trying to reach the service meeting via Zuul gateway, Zuul is unable to forward the request to the respective service. The following errors are what I am facing: nettflix.zuul.exception.ZuulException: Forwarding error Caused by: com.netflix.client.ClientException: Load balancer does not have available server for client: meeting Let me share the application.yml for the service, eureka and zuul gateway. EurekaClient: Application.yml server: port: 8761 eureka: instance: hostname:

Use socket client with NestJs microservice

ⅰ亾dé卋堺 提交于 2020-03-05 04:14:10
问题 I started working with NestJs recently and got stock while trying to test my NestJs microservices app using a TCP client Is it possible to trigger an @EventPattern or @MessagePattern() using a non-nest app? When trying this method the the socket client just stuck on trying to connect . Any ideas? Thanks. 回答1: Update Feb 2020 Since nest v6.6.0, it has become easier to integrate external services with a message de/serializer. Have a look at the corresponding PR. Original Answer You have to set

Spring dataflow and GCP Pub Sub

断了今生、忘了曾经 提交于 2020-03-04 16:41:22
问题 I'm building an event-driven microservice architecture, which is supposed to be Cloud agnostic (as much as possible). Since this is initially going in GCP and I don't want to spend a long time in configurations and all that, I was going to use GCP's Pub/Sub directly for the event queue and would take care of other Cloud implementations later, but then I came across Spring Cloud Dataflow, which seemed nice because these are Spring Boot microservices and I needed a way to orchestrate them. Does

Should a developer be able to create a docker artifact from a lerna monorepo in their development environment?

倖福魔咒の 提交于 2020-02-23 11:36:42
问题 I've recently started using lerna to manage a monorepo, and in development it works fine. Lerna creates symlinks between my various packages, and so tools like 'tsc --watch' or nodemon work fine for detecting changes in the other packages. But I've run into a problem with creating docker images in this environment. Let's say we have a project with this structure: root packages common → artifact is a private npm package, this depends on utilities, something-specific utilities → artifact is a

Authentication & Authorization in Micro services environment

99封情书 提交于 2020-02-06 07:42:18
问题 All of my Micro Services, checking client access token validation using Rest API call to against my Authorization micro service which make a coupling between all the services to the Authorization Micro Service. The problem is that the token located only on the Authorization service Database. Is there a better way to do it instead of rest api? Usually i prefer amqp over Rest API to avoid coupling but i can't see other option. Could someone help with that? 来源: https://stackoverflow.com

SpanContext not found in Extract carrier in microservice

南笙酒味 提交于 2020-02-05 06:31:28
问题 I am trying to implement a Go-based microservice system. I have two service and I try to Inject and Extract span data. In my first service, I have: func (apitracer apiTracer) validatemail(res http.ResponseWriter, req *http.Request) { validateEmailSpan := apitracer.tracer.StartSpan("Validate Email") apitracer.tracer.Inject( validateEmailSpan.Context(), opentracing.HTTPHeaders, opentracing.HTTPHeadersCarrier(req.Header)) req.Header.Set("Content-Type", "application/x-www-form-urlencoded") resp,

Distributed tracing with golang http.PostForm

倖福魔咒の 提交于 2020-01-30 11:05:55
问题 In my project, I try to implement distributed tracing using opentracing . My microservice has following structure. -- API-Gateway |_ User-Service |_ Notification In my API-gateway, I start and in API gateway, I use a to a function to start tracing, code is taken from Setting up your tracer in main() : gatewayTracer := &apiTracer{tracer: startTracing("API Gateway")} http.HandleFunc("/getemail", gatewayTracer.validatemail) func (apitracer apiTracer) validatemail(res http.ResponseWriter, req

Distributed tracing with golang http.PostForm

我是研究僧i 提交于 2020-01-30 11:04:44
问题 In my project, I try to implement distributed tracing using opentracing . My microservice has following structure. -- API-Gateway |_ User-Service |_ Notification In my API-gateway, I start and in API gateway, I use a to a function to start tracing, code is taken from Setting up your tracer in main() : gatewayTracer := &apiTracer{tracer: startTracing("API Gateway")} http.HandleFunc("/getemail", gatewayTracer.validatemail) func (apitracer apiTracer) validatemail(res http.ResponseWriter, req

Distributed tracing with golang http.PostForm

吃可爱长大的小学妹 提交于 2020-01-30 11:04:31
问题 In my project, I try to implement distributed tracing using opentracing . My microservice has following structure. -- API-Gateway |_ User-Service |_ Notification In my API-gateway, I start and in API gateway, I use a to a function to start tracing, code is taken from Setting up your tracer in main() : gatewayTracer := &apiTracer{tracer: startTracing("API Gateway")} http.HandleFunc("/getemail", gatewayTracer.validatemail) func (apitracer apiTracer) validatemail(res http.ResponseWriter, req

Production Grade microservices architecture in AWS

孤街醉人 提交于 2020-01-28 10:28:05
问题 I have a new web application which in our company we have decided to be like below and i am creating the architecture for the first time so would require some inputs. 1) Front End - React.js 2) Backend - Java (Spring boot) 3) Architecture - Microservices 4) Infra - AWS 5) CI - Jenkins We have divided the development in three phases Phase 1 - Create AWS infra, front end service and few backend services using Spring Boot and Spring Cloud. Keep the use of AWS services to as minimum as possible