プリンキピア

第12章クラウドネイティブアプリケーション開発

Test the Deployed FaaS Producer and Consumer Functions配備したFaaSの生成側・消費側の関数をテストする
Now that both the FaaS producer and consumer functions are successfully deployed as Azure Function Apps, data continues to be simulated, pushed to the event hub, and then stored in the datastore. The next step is to test them and evaluate their performance. The FaaS producer function continues to send telemetry data to the Azure event hub while the FaaS consumer function continues to process events from the Azure event hub and store them in the Azure Cosmos DB datastore. The activities and performance of these two functions can be viewed in Application Insights in the Azure Portal.
英語のヒント
生成側と消費側のFaaS関数が、ともにAzure Function Appとして配備できたので、データは引き続き模擬生成され、イベントハブへ送られ、データストアへ保存される。次は、両方をテストし、性能を評価する。生成側の関数は、Azureイベントハブへ遠隔測定データを送り続ける。消費側の関数は、イベントハブのイベントを処理し、Azure Cosmos DBデータストアへ保存し続ける。両方の活動と性能は、AzureポータルのApplication Insightsで見られる。
Evaluate the FaaS Producer Function
FaaSの生成側の関数を評価する
The first step is to inspect the application map for both FaaS functions. Application maps represent the logical structure of a distributed application. Individual components of the application are identified by their “roleName” property and are independently deployed. These components are represented as circles, called “nodes” on the map. HTTP calls between nodes are represented as arrows connecting the source node to the target node. Application maps help identify performance bottlenecks or failure hotspots across all components via alerts.
英語のヒント
まず、両方のFaaS関数のアプリケーションマップを調べる。マップは、分散アプリケーションの論理的な構造を表す。各構成要素は「roleName」プロパティーで識別し、独立に配備する。構成要素は、マップ上では「ノード」という円で表す。ノード間のHTTP呼び出しは、送信元ノードと送信先ノードを結ぶ矢印で表す。マップはアラートを通じ、全構成要素にわたる性能のボトルネックや、障害の集中する場所を見つけるのに役立つ。
The application map (Figure 12.41) displays the logic structure of the FaaS producer function and Azure event bus. It shows the FaaS producer function as a node connected to an Azure event hub, also as a node. The application map for the FaaS producer function shows that there is a dependency between the FaaS producer function and the Azure event hub. It also shows the FaaS producer function is not dependent on the FaaS consumer function nor the Azure Cosmos DB datastore.
英語のヒント
アプリケーションマップ(図12.41)は、FaaSの生成側の関数とAzureイベントバスの論理構造を表示する。生成側の関数を1つのノードとして示し、同じくノードとして表されたAzureイベントハブへ接続している。マップは、生成側の関数とAzureイベントハブに依存関係があることを示す。また、生成側の関数が、消費側の関数にもAzure Cosmos DBデータストアにも依存しないことも分かる。
Image omitted because its reuse rights could not be verified.権利の確認ができないため画像を割愛。
Figure 12.41 This application map shows shows the FaaS producer function as a node connected to an Azure event hub, also as a node. (Used with permission from Microsoft)
図12.41 このアプリケーションマップは、FaaSの生成側の関数を1つのノードとして示し、同じくノードとして表されたAzureイベントハブに接続している。(Microsoftの許可を得て使用)
The application map shown in Figure 12.42 displays the logic structure of the FaaS consumer function and Azure Cosmos DB datastore. It shows the FaaS consumer function as a node connected to an Azure Cosmos DB datastore, also as a node. The application map for the FaaS consumer function shows that there is a dependency between the FaaS consumer function and the Azure Cosmos DB datastore. It also shows the FaaS consumer function is not dependent on the FaaS producer function nor the Azure event hub.
英語のヒント
図12.42のアプリケーションマップは、FaaSの消費側の関数とAzure Cosmos DBデータストアの論理構造を表示する。消費側の関数を1つのノードとして示し、同じくノードとして表されたデータストアへ接続している。マップは、消費側の関数とAzure Cosmos DBデータストアに依存関係があることを示す。また、消費側の関数が、生成側の関数にもAzureイベントハブにも依存しないことも分かる。
Image omitted because its reuse rights could not be verified.権利の確認ができないため画像を割愛。
Figure 12.42 This application map shows the FaaS consumer function as a node connected to an Azure Cosmos DB datastore, also as a node. (Used with permission from Microsoft)
図12.42 このアプリケーションマップは、FaaSの消費側の関数を1つのノードとして示し、同じくノードとして表されたAzure Cosmos DBデータストアに接続している。(Microsoftの許可を得て使用)