service-discovery

Android O issues with WiFi Peer Discovery

ぐ巨炮叔叔 提交于 2020-01-01 10:06:11
问题 I am developing an Android Application that employs WiFi (Direct) for service discovery and P2P peer discovery/connection. My development enviromment is as follows:- Android Studio 3.0 Beta 4 Build #AI-171.4304935, built on August 29, 2017 JRE: 1.8.0_152-release-915-b01 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Mac OS X 10.11.6 My Gradle build:- apply plugin: 'com.android.application' apply plugin: 'realm-android' android { compileSdkVersion 26 buildToolsVersion "26.0.1"

Consul service discovery with DNS on Nodejs

时光毁灭记忆、已成空白 提交于 2020-01-01 06:25:28
问题 TL;DR Hi all, I'm trying to call nodejs backend microservices from a nodejs frontend written in Express, through Consul DNS interface but I am having errors. I am using the nodejs dns api to set the dns for the sole node application in order to make subsequent dns.resolve() calls to the local Consul DNS interface. Target I would like to be able to make an http request to my backend service without the need to wire its IPs and ports in my client code. Neither I want to write a custom code to

JmDNS service discovery in client-server

戏子无情 提交于 2019-12-30 00:44:34
问题 I'm trying to enable service discovery in my client-server application using JmDNS. I fully understand service registry on the server side, with code that resembles this: JmDNS jmdns = JmDNS.create(localhost); jmdns.register(serviceInfo); However, I'm having trouble figuring out how to have my client retrieve the port number and IP address from the registered service and use this data to open a TCP connection. I've searched for examples of how to use JmDNS but to no avail. Can anyone here

Service discovery using dns-sd

笑着哭i 提交于 2019-12-24 08:55:34
问题 I have a device which is configured in station mode. Device is connected to a smart phone over hotspot provided by smartphone. Device needs to search for a service published by an application on smartphone say _abc._tcp. I am using the command dns-sd -B _abc._tcp but no output. Please guide me what I may be missing. The application publishes the service. I verified it using Bonjour application on android. Also please clarify Is it possible to discover the services while in station mode. While

Service discovery using dns-sd

二次信任 提交于 2019-12-24 08:55:14
问题 I have a device which is configured in station mode. Device is connected to a smart phone over hotspot provided by smartphone. Device needs to search for a service published by an application on smartphone say _abc._tcp. I am using the command dns-sd -B _abc._tcp but no output. Please guide me what I may be missing. The application publishes the service. I verified it using Bonjour application on android. Also please clarify Is it possible to discover the services while in station mode. While

Eureka Ribbon LoadBalancer Cache update delay

孤街醉人 提交于 2019-12-24 00:38:52
问题 I am setting up a micro service based application, where Aggregation layer / API gateway makes calls to micro services. Eureka is used for service discovery and Ribbon for providing a load balancing RestTemplate. Postman calls Aggregation--> Aggregation calls Micro service using Eureka/Ribbon/RestTemplate. I have 4 instances of one micro services type running on my machine on 4 different ports. Hitting the same REST endpoint repeatedly Postman causes the requests to get load balanced properly

Is It Possible to Dynamically Add SwaggerEndpoints For SwaggerUI?

心已入冬 提交于 2019-12-23 12:25:36
问题 We're building out a services oriented architecture in .NET Core. We've decided to use Ocelot as our API gateway. I have integrated Ocelot with Consul for service discovery. Now I'm trying to attempt to create a unified Swagger UI for all the downstream services. Prior to service discovery we had Swagger setup like this: // Enable middleware to serve generated Swagger as a JSON endpoint app.UseSwagger(c => { c.RouteTemplate = "{documentName}/swagger.json"; }); // Enable middleware to serve

Android network printers discovery: NullPointerException

限于喜欢 提交于 2019-12-22 08:23:08
问题 This question does sound strange, but I never experienced this before. I'm working on network printer application and use NsdManager to discover printers in the WiFi network. It had been working fine for last two weeks, discovering and resolving printers in the same WiFi network. But all of a sudden I started getting the following exception every time I initiate discovery: 06-03 15:38:07.351: ERROR/AndroidRuntime(16849): FATAL EXCEPTION: NsdManager java.lang.NullPointerException at android

How to set up Spring Cloud Gateway application so it can use the Service Discovery of Spring Cloud Kubernetes?

99封情书 提交于 2019-12-21 23:37:26
问题 I created two Spring Boot applications which both will be deployed in a Kubernetes cluster. One of those apps will act as a gateway and therefore uses Spring Cloud Gateway as a dependency. Also I want to integrate service discovery with Spring Cloud Kubernetes and that the gateway uses the service discovery to automatically generate corresponding routes. But when I expose the gateway application, which is running in an local Minikube cluster, and invoke the second app/service I get a 503

consul first bootstrap with spring cloud config

若如初见. 提交于 2019-12-21 21:33:26
问题 Iam using spring-cloud-config for centralized configuration and consul for service discovery. Like eureka first bootstrap - does spring support consul first bootstrap i.e on booting up a client service - I should look up the config server through consul. The otherway round works perfectly fine i.e - in config client bootstrap.properties - I provide the spring.cloud.config.uri =http://localhost:8888 which located the config server and pulls config from it. And in the config repository for my