Giter Club home page Giter Club logo

anno.core's Issues

注册中心服务信息变更自定义回调(发短信或者发邮件)

`
using Anno.Rpc.Center;

static class Program
{
    static void Main(string[] args)
    {
        Console.Title = "AnnoCenter";
        Bootstrap.StartUp(args,(service,noticeType)=> {
            Console.WriteLine(noticeType.ToString()+":"+Newtonsoft.Json.JsonConvert.SerializeObject(service));
        },(newService, oldService) => {
            Console.WriteLine("NewConfig:" + Newtonsoft.Json.JsonConvert.SerializeObject(newService));
            Console.WriteLine("OldConfig:" + Newtonsoft.Json.JsonConvert.SerializeObject(oldService));
        });
    }
}

`

image

看了一下代码,感觉有点闭门造车的感觉

代码很杂乱,性能估计也有待提高,看着各种lock,分布式锁我感觉只是单进程级别的,这个不叫分布式锁,注册中心你这就属于闭门造车了,并且思路也不对,我看你的图示,微服务还得去注册中心拉数据吗,这个思路就不对,并且微服务如果成千上万,你注册中心服务器能抗的住吗

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.