OutSystems Forge 日本語データベース

AsyncFileProcessing

※Forge全件データの日本語検索サービスをご利用になりたい場合は、こちらまでお問合せください。

Forge英文サイト

2016-07-25 1.0.1 Ricardo Gonzaga 9.1.301.0 All All How-tos
非同期の大きなファイル処理パターン
OutSystems Platformを使用してバッチジョブの実行に対処するには、組み込みタイマー機能を使用する方法とBPT(Business Processing Technology)を使用してプラットフォームを拡張する方法があります。 これらはどちらも非同期ロジックの実行をサポートしていますが、タイマーは通常は時間制限の範囲内で単一スレッドで実行されますが、BPTプロセスでは並列処理が可能で、複数のアトミックなアクティビティがあり、箱から出して。 スタンドアロンのTimerプロセスまたはBPTプロセスを使用することも、一緒に使用することもできます。 結合して使用すると、一方または他方をオーケストレーターとして定義します。これらのソリューションのそれぞれは、特定のシナリオに適している可能性があるため、賛否両論を考え、それに応じて選択する必要があります。 タイマー:一定量の行を読み取り、実行ごとにチャンクを処理します。 長所 ファイルを処理するための長い実行をサポート 新しいファイルを検出するためのプーリングメカニズム 短所 一度に1つのファイルしか処理せず、並列処理をサポートしません 2. BPT:各実行中に複数のチャンクを処理する単一のプロセスを起動します。 長所 一度に複数のファイルを処理する ファイルのまとまりを処理するための並列処理をサポート 短所 新しいファイルを検出するためのプーリング・メカニズム(BPTプロセスをトリガーする外部サービスに依存します)をサポートしていません。 長い走りがない パージする必要があるBPTエンジンのために、データベースにある程度の負荷を加えます 3. BPTを使用したタイマー:各チャンクに対して複数の並列プロセスを起動します。これは、行間にシーケンスを保持する必要がない場合に適しています。 長所 新しいファイルを検出するメカニズムをプールすることをサポートしています ファイルのまとまりを処理する並列処理 短所 一度に複数のファイルを処理することはできません 長いランを扱うことはできません。 4.タイマー付きBPT:BPTは、タイマーを使用して非同期プロセスの実行を調整します。 長所 一度に複数のファイルを処理する 長い走りをサポートする 短所 ファイルのまとまりを処理する並列処理がない 新しいファイルを検出するためのプーリングメカニズムがありません(BPTプロセスを起動するために外部サービスが必要です) データベースへの追加の負荷

[Overview]
Asynchronous large file processing patterns
[Detail]
There are several ways to address the execution of batch jobs with OutSystems Platform, either by using the built-in Timers functionality or by extending the Platform with BPT (Business Processing Technology). They both support asynchronous logic execution, but while Timers are a single thread execution usually for time bound operations — within the minutes time range —, the BPT Processes allow parallel execution, with multiple atomic activities, where each process can take hours or even days, out of the box. You can use standalone Timer or BPT processes, or you can use them in conjunction. When used in conjuction, you define one or the other as the orchestrator. Each of these solutions may be more appropriate for a given scenario, so you have to ponder their pros and cons and make your choice accordingly. 1. Timer: reads a certain amount of lines and processes chunks at each run. Pros supports long runs to process files pooling mechanism to detect new files Cons only handles one file at a time and doesn't support parallelism 2. BPT: triggers a single process that handles multiple chunks during each run Pros handles multiple files at a time supports parallelism to process chunks of files Cons doesn't support pooling mechanisms to detect new files (dependent on an external service triggering the BPT process) no long runs adds a certain degree of load on the database, due to the BPT engine that needs to be purged 3. Timer with BPT: triggers several parallel processes for each chunk, which is appropriate when you don't have to keep a sequence between lines. Pros supports pooling mechanisms to detect new files parallelism to process chunks of files Cons cannot handle multiple files at a time cannot handle long runs. 4. BPT with Timer: BPT orchestrates the asynchronous process execution, by using Timers. Pros handles multiple files at a time supports long runs Cons no parallelism to process chunks of files no pooling mechanism to detect new files (an external service is needed to trigger the BPT process) additional load on the database
戻る