Consulを用いたカスタムサービス登録実装の最適化パターン
設定モデルの再設計
サービスディスカバリーの設定構造を再構築します。以下は再設計された構成オブジェクトです:
namespace ServiceDiscovery.Configuration
{
public class DiscoveryConfig
{
public ClusterEndpoint Cluster { get; set; }
public ServiceRegistration Service { get; set; }
}
}
namespace ServiceDiscovery.Configurat ...
6月13日 20:50 投稿