Giter VIP home page Giter VIP logo

eurekademo's Introduction

README

咋用

  1. git clone 代码
  2. bundle 安装 gem
  3. rails s 启动服务

1月29日更新

  • 重新组织 middleware 的位置

1月28日更新

  • 使用 http gem 代替 Ruby build-in 的 NET::HTTP
  • 支持 https

1月26日更新

  • 使用 middleware 实现了 health 和 info
  • 注册和心跳都挪到了 config/initializers/eureka_ruby.rb
  • config/initializers/eureka_ruby.rb 被注释掉的配置项均有默认值

1月25日

把 Rails 项目注册到 eureka 中。

  • 核心代码在 lib/eureka_ruby 文件夹中。
  • 心跳 config/initializers/keep_living.rb
  • 注册 config/initializers/register_application_instance.rb
  • 配置项 config/initializers/eureka_ruby.rb

例子

EurekaRuby.executor.run(:register)
EurekaRuby.executor.run(:deregister)
EurekaRuby.executor.run(:send_heartbeat)

已经实现

  • Register new application instance
  • De-register application instance
  • Send application instance heartbeat

eurekademo's People

Contributors

giaogiaocat avatar

Watchers

 avatar

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.