Code Monkey home page Code Monkey logo

nanophone's People

Contributors

lvermeulen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nanophone's Issues

A working example for 4.5/4.6.

How would I use this in 4.5-4.6 environment? I understand wanting to work with the latest, but some working samples in 4.5-4.6 would be great. I can't imagine many people have the option to be deploying dotnetcore apps in the near future.

The sample for Nancy isn't actually Nancy.

support grpc?

GrpC already supports. NET core, looking forward to Nanophone can increase support for grpC framework

NuGet Framework dependencies don't match compiled code

Just added Nanophone into a 4.5.2 project (which should work according to the nupkg). I think it installed the lib\4.5 dll, but it gives this error in Visual Studio

nano1

Decompiling the DLL with IL spy shows

[assembly: TargetFramework(".NETFramework,Version=v4.6.1", FrameworkDisplayName = ".NET Framework 4.6.1")]

I presume this is just a build error, but as an aside - please continue to support the oldest possible framework that's practicable (4.5.xxx) - some of us work in environments with legacy code and OS and .Net installations and customers who simply can't upgrade to the latest and greatest at a whim!

Nancy Kestrel health check isn't reachable by Consul

Consul times out either waiting for headers or waiting for a connection.
Health check uri works from browser
Kestrel host.
Nancy net46 works fine.
Web Api health check in Kestrel works fine, difference is chunked transfer-encoding in WebApi,
Possible Nancy 2.0.0-barney-rubble 2.0.0.Pre-1774 issue?

Logged as Nancy issue

.NET Core Support

Hi there,

Now that .NET Core RTM has been released, are there any plans to update this project to support it? Thanks.

Support .NET Core RTM

Branch feature/vnext

  • Nanophone.Core
  • Nanophone.Core.Tests
  • Nanophone.RegistryHost.ConsulRegistry
  • Nanophone.RegistryHost.ConsulRegistry.Tests
  • Nanophone.RegistryTenant.Nancy
  • Nanophone.RegistryTenant.WebApi
  • Samples\SampleClient.net451
  • Samples\SampleService.Nancy.net451
  • Samples\SampleService.WebApi.SelfHost.net451
  • Add netcore samples
  • Use compatible Consul package
  • Use compatible Nancy package
  • Build packages
  • Update appveyor.yml
  • Merge to master

Use semver 2.0

Use semantic versioning to find service instances by version.

  • Port semver package to .netstandard
  • Incorporate semver package

Simple WebAPI clients get booted out of Consul due to lack of health check

This is more to ask for guidance than a bug report. I made a very simple WebAPI service and registered it using Nanophone, which succeeded, but Consul booted it out of the cluster, I think because it did not implement any sort of health check.

It's probably a good idea to have a health check of course, but I was wondering if you had any thoughts on this? Microphone seems to register a default health check. This is all new to me so I don't know what best practice is yet, but the "getting started" story needs to be as simple as possible.

Here is the consul log FWIW

2016/07/20 11:19:31 [INFO] agent: Synced service 'consul'

==> Failed to check for updates: Get https://checkpoint-api.hashicorp.com/v1/check/consul?arch=amd64&os=windows&signature=&version=0.6.4: dial tcp 54.221.230.67:443: connectex: No connection could be made because the target machine actively refused it.
2016/07/20 11:21:02 [DEBUG] agent: Service 'consul' in sync
2016/07/20 11:22:25 [WARN] Service tag "version-1.0" will not be discoverable via DNS due to invalid characters. Valid characters include all alpha-numerics and dashes.
2016/07/20 11:22:25 [DEBUG] agent: Service 'consul' in sync
2016/07/20 11:22:25 [INFO] agent: Synced service 'case-id_localhost_9000'
2016/07/20 11:22:25 [DEBUG] agent: Check 'service:case-id_localhost_9000' in sync
2016/07/20 11:22:25 [DEBUG] http: Request PUT /v1/agent/service/register (2ms) from=127.0.0.1:56229
2016/07/20 11:22:25 [DEBUG] agent: Service 'consul' in sync
2016/07/20 11:22:25 [DEBUG] agent: Service 'case-id_localhost_9000' in sync
2016/07/20 11:22:25 [DEBUG] agent: Check 'service:case-id_localhost_9000' in sync
2016/07/20 11:22:25 [DEBUG] agent: Service 'consul' in sync
2016/07/20 11:22:25 [DEBUG] agent: Service 'case-id_localhost_9000' in sync
2016/07/20 11:22:25 [DEBUG] agent: Check 'service:case-id_localhost_9000' in sync
2016/07/20 11:22:25 [DEBUG] agent: pausing 273.409331ms before first HTTP request of http://localhost:9000//status
2016/07/20 11:22:27 [WARN] agent: http request failed 'http://localhost:9000//status': Get http://localhost:9000//status: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
2016/07/20 11:22:28 [WARN] agent: check 'service:case-id_localhost_9000' is now critical
2016/07/20 11:22:29 [WARN] agent: check 'service:case-id_localhost_9000' is now critical
2016/07/20 11:22:30 [WARN] agent: check 'service:case-id_localhost_9000' is now critical
2016/07/20 11:22:31 [WARN] agent: check 'service:case-id_localhost_9000' is now critical
2016/07/20 11:22:32 [WARN] agent: check 'service:case-id_localhost_9000' is now critical
2016/07/20 11:22:33 [WARN] agent: check 'service:case-id_localhost_9000' is now critical
2016/07/20 11:22:34 [WARN] agent: check 'service:case-id_localhost_9000' is now critical
2016/07/20 11:22:35 [DEBUG] http: Request GET /v1/health/state/critical (0) from=127.0.0.1:56229
2016/07/20 11:22:35 [DEBUG] agent: Service 'consul' in sync
2016/07/20 11:22:35 [INFO] agent: Deregistered service 'case-id_localhost_9000'
2016/07/20 11:22:35 [INFO] agent: Deregistered check 'service:case-id_localhost_9000'
2016/07/20 11:22:35 [DEBUG] http: Request PUT /v1/agent/service/deregister/case-id_localhost_9000 (999.2µs) from=127.0.0.1:56229
2016/07/20 11:22:35 [DEBUG] agent: Service 'consul' in sync
2016/07/20 11:22:35 [DEBUG] agent: Service 'consul' in sync
2016/07/20 11:22:37 [DEBUG] agent: Service 'consul' in sync
2016/07/20 11:22:40 [DEBUG] http: Request GET /v1/health/state/critical (0) from=127.0.0.1:56229

Tags are always null

Hello!

Thank you for your work!

I have a small issue:

Then i request services via FindServiceInstancesAsync, property tag of the RegistryInformation is always null.

How i can fill this property ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.