microservices

Spring Boot - how to communicate between microservices?

為{幸葍}努か 提交于 2019-12-12 23:08:07
问题 I'm currently working on a Spring Boot microservices project. I have created services and each service is running separately. With this, I need some services to communicate with other services. How can i achieve that? I saw some blogs about this which use Netflix, Eureka cloud servers to achieve this. Is there any way I can achieve this in my local environment without using cloud servers? 回答1: Of course you can. Microservices are just REST-Services. You need to understand how REST-Services

Kuberenets Web UI (Dashboard) missing graphs

僤鯓⒐⒋嵵緔 提交于 2019-12-12 19:38:05
问题 I have installed Docker v1.13 and Kubernetes with Kubeadm v1.6. Then I installed Web UI (Dashboard). I can access it but its missing CPU/Memory usage graphs... Why could this happen? 回答1: For me the usage graphs worked once I installed heapster as an addon. Heapster requires an influxdb as data sink for the metric storage. Luckily you can deploy all those easily in k8s with the following definitions in the kube-system namespace (tested it with k8s 1.4.6): heapster-service.yml: apiVersion: v1

Microservices Create Entity Implementation

让人想犯罪 __ 提交于 2019-12-12 17:11:55
问题 This is a follow-up question to my issue outlined here. The Gateway serves as an entry point to the application, to which every request from the client is made. The gateway then allocates the request to the responsible microservices and also handles authentication. In this case the gateway listens for HTTP POST /bok and notifies the Microservice A to create a book. Thus Microservice A ist responsible for managing and storing everything about the book entity. The following pseudo-code is a

Communication between two microservices by Docker hostname

╄→гoц情女王★ 提交于 2019-12-12 15:55:36
问题 How it works now: Microservice X makes REST API request to Microservice Y with static ip http://{ip-address}:{port}/doSomething The problem: The problem is that I can no long guarantee that static ip. I wan't to solve this by using the docker hostname instead: http://hostname:{port}/doSomething I tried achieving this by creating a used defined network in docker-compose: #part of docker-compose file streamapp: hostname: twitterstreamapp image: twitterstreamapp container_name: twitterstreamapp

Register MicroServices in Azure Active Directory (AAD) for Security

僤鯓⒐⒋嵵緔 提交于 2019-12-12 15:18:18
问题 I have a service fabric application (Stateless and Statefull) deployed in Service fabric cluster. I am trying to implement security in the applications. The application uses the Active Directory Authentication Library (ADAL) to get a token from Azure AD using the OAuth 2.0 client credential flow, where the client credential is a password. I am able to implement the same scenario in ordinary web api applications by registering them in Azure portal. Can anyone tell me how to register a service

How do you handle validation in composite microservice request?

陌路散爱 提交于 2019-12-12 11:20:12
问题 Consider an application with two entities: User (contains basic user data, such as name) Passport (contains authentication credentials, i.e. password) And two internal microservices: UserService (responsible for creating and managing users and their basic data) AuthService (responsible for user authentication and password handling) The User entity belongs to the UserService and Passport entity belongs to the AuthService . Those two services should be separated, because they solve very

many log files on azure service fabric

拟墨画扇 提交于 2019-12-12 10:57:35
问题 I have a azure service fabric development cluster running locally with two applications. After a two week holiday I come back and see that my hard drive is completely full, consequently nothing really works anymore. the sfdevcluster\log\traces folder has many *.etl files all larger than 100MB. And all kinds of other log files > 250 MB are present So my questions: how to disable tracing/logging on azure service fabric and are there tools to administer log files? 回答1: This turned out to be a

How to sync the database with the microservices (and the new one)?

杀马特。学长 韩版系。学妹 提交于 2019-12-12 10:47:23
问题 I'm developing a website with the microservice architecture, and each of the service owns a database. The database stores the data which the microservice needs. Post , Video services need the user information, so both of the services subscribed to the NEW_USER_EVENT . The NEW_USER_EVENT will be triggered when there's a new user registered. Once the services received the NEW_USER_EVENT , they put the incoming user information to each of their own database. So they can do things without asking

Worker - having trouble to choose the best technology [closed]

心不动则不痛 提交于 2019-12-12 09:27:42
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 months ago . I want to create a micro-service for parallel processing some tasks which I get via push by an Azure Service Bus. This micro-service will notify the Azure Service Bus if the task where complete with success or not. See the following diagram: I already have this three options

Communication Between Microservices

蹲街弑〆低调 提交于 2019-12-12 08:49:21
问题 Say you have microservice A,B, and C which all currently communicate through HTTP. Say service A sends a request to service B which results in a response. The data returned in that response must then be sent to service C for some processing before finally being returned to service A. Service A can now display the results on the web page. I know that latency is an inherent issue with implementing a microservice architecture, and I was wondering what are some common ways of reducing this