fanliang11 / surging

Surging is a micro-service engine that provides a lightweight, high-performance, modular RPC request pipeline. support Event-based Asynchronous Pattern and reactive programming ,The service engine supports http, TCP, WS,Grpc, Thrift,Mqtt, UDP, and DNS protocols. It uses ZooKeeper and Consul as a registry, and integrates it. Hash, random, polling, Fair Polling as a load balancing algorithm, built-in service governance to ensure reliable RPC communication, the engine contains Diagnostic, link tracking for protocol and middleware calls, and integration SkyWalking Distributed APM
MIT License
3.24k stars 923 forks source link

Correct connection strings #408

Closed firstrose closed 3 years ago

firstrose commented 3 years ago

Use parameter as connection string instead of the fixed configuration item.

原来的代码有问题。既然有参数,就应该使用参数。如果需要从配置文件获取,应该重载一个无参接口。