Considerations
考察
The following list of considerations is helpful when deciding how to choose connection options.
考察の次のリストは、どのように接続オプションを選択する方法を決めるとき、役立ちます。
- eventHandlerOptions.commitTimeout and eventHandlerOptions.strategy work together. For example, commitTimeout:
100 and strategy:
EventStrategies.MSPID_SCOPE_ANYFORTX means that the gateway will wait for up to 100 seconds for any peer to confirm a transaction has been committed. In contrast, specifying strategy:
EventStrategies.NETWORK_SCOPE_ALLFORTX means that the gateway will wait up to 100 seconds for all peers in all organizations.イベントハンドラーオプションとイベントハンドラーオプション.戦略は一緒に働きます。 例えば、コミットタイムアウト:100と戦略: イベント戦略.MSPID_範囲_ANYFORTXはゲートウエイがトランザクションの確約されていることを確認するために100秒までどんな相手でも待つであろう ことを意味します。 それと対照的に、戦略指定すること:イベント戦略.ネットワーク_範囲_ALLFORTXは、ゲートウエイがすべての組織のすべての相手でも100秒待つであろうことを意味します。 - The default value of eventHandlerOptions.strategy:
EventStrategies.MSPID_SCOPE_ALLFORTX will wait for all peers in the application’s organization to commit the transaction. This is a good default because applications can be sure that all their peers have an up-to-date copy of the ledger, minimizingl minimizing concurrency issues.
イベントハンドラーオプション.戦略の省略時値: イベント戦略.MSPID_範囲_ALLFORTXは、アプリケーションの組織のすべての相手がトランザクションの確約待ちます。 アプリケーションが彼らのすべての相手が 同時発生問題を最小にして元帳の最新のコピーを持っていることを確実にし得るから、これは良い省略時値です。
However, as the number of peers in an organization grows, it becomes a little unnecessary to wait for all peers, in which case using a pluggable event handler can provide a more efficient strategy. For example the same set of peers could be used to submit transactions and listen for notifications, on the safe assumption that consensus will keep all ledgers synchronized.
しかしながら、組織の相手の数が増大するから、すべての相手を待つことが少し不必要になり、そしてその場合取り外し可能イベントハンドラーを使うことはいっそう効率的な方針を提供することができます。 例えば相手の同じセットはそれは意見一致がすべての元帳を同期させられるようにしておくであろうという安全な仮定で、トランザクションを提出して、通知を聞くために使うのに可能であろう。
- Service discovery requires clientTlsIdentity to be set. That’s because the peers exchanging information with an application need to be confident that they are exchanging information with entities they trust. If clientTlsIdentity is not set, then discovery will not be obeyed, regardless of whether or not it is set.
サービスディスカバリはセットされるのにクライアントTlの身元を必要とします。 それは情報をアプリケーションで交換している相手が(彼・それ)らが情報を彼らが信頼するエンティティーと交換していることを確信している必要があるからです。 もしクライアントTlの身元がセットされないなら、それがセットされるかどうかにかかわらず、 発見は従われません。
- Although applications can set connection options when they connect to the gateway, it can be necessary for these options to be overridden by an administrator. That’s because options relate to network interactions, which can vary over time. For example, an administrator trying to understand the effect of using service discovery on network performance.
それらがゲートウエイに接続するとき、アプリケーションは接続オプションを設定可能だけれども、アドミニストレーターによって優先されることはこれらのオプションにとって必要であり得ます。 それはオプションが長い間にさまざまであることができるネットワーク対話に関連しているからです。 例えば、管理者ネットワーク・パフォーマンスに対するサービスディスカバリを使う効果を理解しようとしています。
A good approach is to define application overrides in a configuration file which is read by the application when it configures its connection to the gateway.
それがゲートウエイへのその接続を構成配置するとき、良いアプローチはアプリケーションによって読まれるコンフィギュレーション・ファイルでアプリケーションオーバライドを定義することです。
Because the discovery options enabled and asLocalHost are most frequently required to be overridden by administrators, the environment variables INITIALIIZE-WITH-DISCOVERY and DISCOVERY-AS-LOCALHOST are provided for convenience. The administrator should set these in the production runtime environment of the application, which will most likely be a docker container.
なぜなら発見 オプションenabledとasLocalHostが最もしばしば管理者によって優先されるように要求されるので、環境変数INITIALIIZE WITH DISCOVERYとDISCOVERY AS LOCALHOSTは便利さのために提供されます。 アドミニストレーターはこれらを最も見込みが高くドッカ―コンテナであろうアプリケーションの実働ランタイム環境にセットすべきです。
=========================
インターネット・コンピュータランキング
=========================
ネットサービスランキング
=========================
</table5
=========================
インターネット・コンピュータランキング
=========================
ネットサービスランキング
=========================
</table5