microservices

How to bring a gRPC defined API to the web browser

白昼怎懂夜的黑 提交于 2019-12-20 07:59:12
问题 We want to build a Javascript/HTML gui for our gRPC-microservices. Since gRPC is not supported on the browser side, we thought of using web-sockets to connect to a node.js server, which calls the target service via grpc. We struggle to find an elegant solution to do this. Especially, since we use gRPC streams to push events between our micro-services. It seems that we need a second RPC system, just to communicate between the front end and the node.js server. This seems to be a lot of overhead

Sending HTTP response after consuming a Kafka topic

纵然是瞬间 提交于 2019-12-20 07:28:29
问题 I’m currently writing a web application that has a bunch of microservices. I’m currently exploring how to properly communicate between all these services and I’ve decided to stick with a message bus, or more specifically Apache Kafka. However, I have a few questions that I’m not sure how to conceptually get around. I’m using an API Gateway-service as the main entry to the application. It acts as the main proxy to forward operations to the applicable microservices. Consider the following

Accessing Models and ORM across various Django instances [Microservice Architecture]

不问归期 提交于 2019-12-20 05:23:12
问题 I've a Django Rest Project backed by Postgres Database. Now each app under this project has to decoupled and to be moved into different server. But in the current views there are places where i've to import models from another app and perform operations through ORM. Keeping this in mind, how can i access the models from different apps (which will be running as separate django instance on different servers) and also perform Queries on them. ? 来源: https://stackoverflow.com/questions/51035005

Microservice Configuration in play 2 framework

早过忘川 提交于 2019-12-19 12:04:07
问题 I have divided my application into different projects in PLay 2. But I just realised I do not know how to run multiple play application in the same server. Anyone knows how to do it? Let us suppose it is not possible,Therefore, I will just deploy multiple play application in the same root project (The microservice will act as a plugin). Do you think this will defeat microservice architecture?. I will make each module act independently. 回答1: By server, I'm guessing you mean Tomcat / Jetty /

Microservices Deployment

北战南征 提交于 2019-12-19 10:53:45
问题 I have: Microservice-A Microservice-B Microservice-C Microservice-A calls Microservice-B and Microservice-C When I deploy Microservice-A I want make sure that other microservices it depends on have not changed since I last release it. Is there a recommended way to do this? I'm thinking: when I deploy Microservice-A Microservice-A makes calls to Microservice-B and Microservice-C this call would fetch the endpoint specification for the endpoints it depends on and verify whether the endpoints

Micro services: shared library vs code duplication

淺唱寂寞╮ 提交于 2019-12-19 08:52:11
问题 Similar questions were asked a few times, but as every use-case can be different I thought it worth to ask it again with the specific case I'm facing with. So, we are developing micro-services using .netCore. Let's call these services ServiceA , ServiceB , ServiceC . Common entities If ServiceA calls ServiceC , then ServiceC responds with a JSON content which can be serialized into ResponseC object. This means, that both ServiceA and ServiceC should know ResponseC class. At this point I see

com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server

爱⌒轻易说出口 提交于 2019-12-18 18:48:29
问题 I am very new to the microservices and trying to run the code from link: https://dzone.com/articles/advanced-microservices-security-with-spring-and-oa . When I simply run the code I see the following error comes. What is the issue ? com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:111) ~[eureka-client-1.4.12.jar:1.4.12] at

Global variables And Application Variables Defining in Spring boot project

。_饼干妹妹 提交于 2019-12-18 18:04:29
问题 I am trying to develop micro service by using spring and spring boot. In my project , I am converting monolithic to service oriented architecture. Project contain 20 Micro services.I these I need to set application variables and global variables. I have confusions related to this , And I am adding those confusions here, Is possible to declare my global variables in application.properties file? If not possible where I can define my global variables? If I am using spring config server for

Service Fabric Reliable Services Pipeline design

风格不统一 提交于 2019-12-18 10:46:34
问题 I need to implement pipeline if Service Fabric's Reliable Services, and I need some guidelines about what of these approaches is preferable from the viewpoint of reliability simplicity and simple good design: 回答1: I have been investigating this topic a lot as well (to be applied to my work for NServiceBus and MessageHandler) and would like to provide my thoughts on the matter. However I haven't determined what the best model is yet. If you disregard the practical implementation with

inter micro-service request responds with Forbidden status in spring cloud application

半城伤御伤魂 提交于 2019-12-18 09:45:05
问题 I am investigating microservice architecture. I chose the spring cloud framework. My application shema looks like this: Also I have discovery server eureka but I decided to skip on the picture to simplify it. Full source code of example you can find on githib: https://github.com/gredwhite/spring-cloud Problem explanation: hello world service: @GetMapping("/helloWorld") @HystrixCommand(fallbackMethod = "reliable") public String hello() { return this.restTemplate.getForObject("http://hello