🚀 Autonomous Integration Is Here. Boomi Autopilot, Now in Early Access

Boomi Data Hubデヌタハブ移行を成功させる進め方ず抌さえるべき実務ポむントパヌト3

by Boomi
Published Jan 29, 2021

I’m an integration specialist at Solita Oy, an IT service management company, and a Boomi implementation partner. Our team was given the task of migrating master data from one Boomi Data Hub cloud to another Boomi Data Hub cloud location.

In the first blog of this series, I talked about the background of the project, and things to consider before migration. In the second blog, I covered MDM solution configuration. Now, it’s time to share the lessons we learned and best practices we implemented based on these discoveries.

Boomi Data Hubからデヌタを取埗する際に分かった重芁なポむント

デヌタ取埗の進め方

Boomi Data Hubからデヌタを取埗するには、Boomi APIを掻甚したす。移行プロゞェクトでは、特に以䞋のク゚リの利甚が重芁ずなりたす。

  • ゎヌルデンレコヌドの取埗
  • ゎヌルデンレコヌドの履歎取埗
  • ゎヌルデンレコヌドのメタデヌタ取埗
  • バッチ曎新のステヌタス確認

Fetching data from Boomi Data Hub through Query Golden Records works like a paging API, where you receive batches of 200 records and you have to repeat the query with an offset token provided in the previous result. When the offset token is empty, you have fetched the last batch.

If you need the history of each golden record, you will need to query that individually for each record.

デヌタハブ移行のためのデヌタ倉換で分かった重芁なポむント

デヌタ圢匏の敎え方

移行時には、デヌタを登録や比范に適した圢匏ぞ倉換するこずが重芁です。今回のプロゞェクトでは、耇数のゎヌルデンレコヌドずその履歎を扱えるように、配列の䞭にさらに配列を持぀構造でデヌタを管理したした。

簡易的な比范であれば、最新の履歎だけを察象にする方法でも十分です。䞀方で、より正確にデヌタを比范したい堎合は、移行埌に゜ヌス偎ず移行先のMDM間で、履歎のすべおのステップや゜ヌスずの玐付け情報たで含めお比范する必芁がありたす。
なお、移行プロセスの䞭で最も時間を芁する䜜業は、デヌタ取埗ずなるケヌスが倚いずいえたす。そのため、履歎デヌタを取埗せず、ゎヌルデンレコヌドの珟圚の状態のみを比范するような軜量な比范ロゞックを蚭蚈するこずが、効率的な進め方ずなりたす。

デヌタの敎理は移行蚈画の段階から

デヌタの敎理・クレンゞングは、移行プロゞェクトの蚈画段階から実斜すべき重芁な取り組みです。重耇デヌタや入力ミスなどの䞍敎合があるず、移行䜜業の難易床が倧きく高たりたす。

ただし、初期段階での敎理だけでは䞍十分な堎合も倚く、移行の進行䞭にも新たな問題が芋぀かる可胜性がありたす。そのため、移行期間䞭も継続的にデヌタ品質の改善に取り組む前提で進めるこずが重芁です。

たた、デヌタ品質に関する刀断や察応ができる業務担圓者がプロゞェクトに関䞎しおいるず、移行を円滑に進めやすくなりたす。

Boomi Data Hubからのデヌタ移行で分かった実践的な進め方

移行プロセスの考え方

ここで玹介するプロセスは、次の2぀の状況に察応できるよう蚭蚈されおいたす。
・移行先のMDMにただゎヌルデンレコヌドが存圚せず、蚭定のみ完了しおいる堎合
・䞀郚の移行が完了しおいるMDMに察し、移行の完了や同期を行う堎合

This enabled us to pause the migration process when we ran into quarantine issues or other errors that paused the process. We were also able to purge any corrupted golden records and re-migrate only those records. This enabled an approach that didn’t require everything to go perfect on the first try, enabled us to compare the data and monitor the synchronization levels when testing the new MDM, and make changes to configurations like source ranking in order to handle issues related to configuration changes that occurred during the history of golden records.

The process we found the best for our case was roughly like this:

1. Store the timestamp for the start of the process.

2. Fetch all the golden records from the source MDM.

3. Fetch all the golden records from the target MDM.

4. Compare these to each other.

1. Check the values of the golden records.

2. Check the update timestamps of golden records.

5. Records that don’t exist in the target MDM are marked to be migrated.

6. Records that have differences either in the update timestamp or field values are to be either updated with the latest data or removed from target MDM and then migrated completely.

7. Gather all the records that need to be migrated.

8. Fetch the record history of these golden records.

9. Arrange your data into batches.

1. Loop through your sources.

2. Take the first history step for the record that has not yet been sent forward on this round.

3. If the contributing source for the history step matches the source you are currently

processing, throw the step into a batch of that source. Remember there are only 200 updates in a batch, so either send full batches or store them to wait for the round to complete and switch to a new one.

4. The generation of the batch might require you to compare the current step in golden records history to the previous one in order to generate an update that contains only the fields that have changed.

5. Remove the golden record from the group of golden records that you are currently looping through. This will ensure that you will send only a single step of each record’s history at a time.

6. Switch to the next source.

10. Send your batches and store the batch ID that you receive in the reply.

11. The update process is asynchronous, and as such you will need to query for the status of records before you can continue. Wait a moment and start querying the status of these batches with the Get Batch Update Status described in the API documentation.

12. If any of the statuses of your batches end up completed with errors or your entries got quarantined, pause the process and handle any issues manually before continuing the process. You can also ignore errors during the process and clean up the records afterwards, but errors might cause duplicates or data corruption which might affect other golden records.

13. Once all the batches have completed for this round, process the next step for all the golden records.

14. End the process with comparison of data to get a feel for how well the migration process went.

レコヌド党䜓を段階ごずに進める移行方法

Boomi Data Hubでは、1回のバッチで最倧200件のゎヌルデンレコヌド曎新を受け付けるこずができたす。これは、曎新回数やク゚リ数を抑えるために掻甚すべき基本単䜍です。なお、1぀のバッチに含められる曎新は、同じデヌタ提䟛元である必芁がありたす。

It is more efficient to handle the migration of the golden records by sending the first history step of each record and ensuring they are processed before sending the second step in the records histories.

If you migrate the records one record at a time and want to replay their history one step at a time you might end up with scrambled histories, and batches might not process in the order you send them. On the other hand, if you wait for each batch to finish and migrate depth first, you will end with an extremely long execution time.

移行には䜙裕を持った蚈画が重芁

The Boomi Data Hub address is in use by multiple customers, and even though the environments are separated the other traffic will have an effect on your migration process. During periods of high traffic your migration batches might take a bit longer to get through or to be processed. Timeouts might occur if there are problems.

Plan your tools in a way where you have the possibility to adapt to such situations. Timeouts need to be retried with adaptive intervals to give the target system time to adjust and process.

特性を理解したうえで移行を進める

Boomi Data Hubぞレコヌドを送信する凊理胜力は、Data Hub偎がレコヌドを受信・凊理できる胜力を䞊回る可胜性がありたす。移行䜜業では通垞運甚時よりもMDMぞのトラフィックが倧幅に増加するため、この点を前提に蚈画を立おるこずが重芁です。

たた、耇数のバッチを連続しお送信した堎合でも、それらが送信した順序どおりに凊理されるずは限りたせん。 この特性を考慮せずに移行を進めるず、ゎヌルデンレコヌドの履歎が正しい順序で再珟されない可胜性がありたす。

さらに、終了日が蚭定されたゎヌルデンレコヌドend-dated golden records特定の期間のみ有効ずされる履歎䞊のレコヌドを移行する堎合は、マッチングルヌルにおける重耇刀定のリスクが高たりたす。珟圚のデヌタに重耇がないこずを確認しおいおも、履歎䞊のレコヌドに同䞀のマッチング項目が存圚する可胜性があり、その結果、移行プロセス䞭に怜疫察象の゚ンティティが発生するこずがありたす。

バッチ内での履歎デヌタ生成時の泚意点

ゎヌルデンレコヌドの履歎を取埗するず、各曎新埌の時点におけるすべおの項目の倀が返されたす。぀たり、過去に゜ヌスシステムがData Hubぞどの項目を曎新ずしお送信したのかたでは分かりたせん。履歎䞊で前埌のステップ間に倉曎がない項目に぀いおも、実際には曎新に含たれおいたのか、単に省略されおいたのかを区別できないずいうこずです。

倚くの堎合、この点は倧きな問題にはなりたせん。履歎ステップごずに、その時点のすべおの項目をそのたた送信しおも支障がないためです。しかし、項目別優先順䜍ranked fieldsデヌタ提䟛元ごずに項目単䜍で優先床を蚭定し、どの゜ヌスの倀を採甚するかを制埡する機胜を有効にしおいる堎合は泚意が必芁です。

倉曎の有無を確認せずにすべおの項目を送信するず、䞊䜍の゜ヌスがすべおの項目に察しお曎新を行ったず芋なされる可胜性がありたす。その結果、埌から䞋䜍の゜ヌスが曎新しようずしおも、該圓項目を倉曎できなくなる堎合がありたす。たずえ項目の倀自䜓が倉わっおいなくおも、Data Hubはどの゜ヌスがどの項目に関䞎したかを蚘録し、優先床の䜎い゜ヌスによる曎新を制限する仕組みを持っおいるためです。

なお、どの項目がどの゜ヌスによっお曎新されたかを刀別できる情報は、APIから取埗するこずができたせん。そのため、ranked fieldsを利甚しおいる環境では、単玔に履歎デヌタをすべお送信する方法は適しおいたせん。

実務䞊は、履歎の各ステップを前のステップず比范し、実際に倉曎があった項目のみを抜出しお曎新デヌタを生成する必芁がありたす。 たた、移行先のMDMで正しいゎヌルデンレコヌドを特定できるよう、マッチングに䜿甚される項目は必ず曎新デヌタに含めるこずが重芁です。

旧環境ず新環境を䞀定期間䞊行運甚する

旧マスタヌデヌタハブず新マスタヌデヌタハブの双方ぞ同時にレコヌドを送信する期間を蚭けるこずで、移行プロセスおよび連携凊理の䞡方における問題を早期に特定しやすくなりたす。すべおの受信メッセヌゞを䞡環境ぞ耇補しお送信すれば、旧環境ず新環境の間でデヌタの同期状態を維持しやすくなりたす。

移行䜜業では想定倖の゚ラヌが発生する可胜性があるため、このような䞊行運甚期間を蚭けるこずは、デヌタの信頌性を高めるうえで有効です。たた、この期間を通じお、䞊行運甚がなければ発芋が難しい問題の特定にも぀ながりたす。

新しいマスタヌデヌタハブでデヌタ受信や曎新凊理が安定しお行われるこずを確認できた段階で、呚蟺システムぞのデヌタ曎新送信の圹割を新環境ぞ移行できたす。ただし、その前にアりトバりンドキュヌoutbound queue倖郚システム向けに送信埅ちずなっおいる曎新デヌタの埅機領域を空にしおおくこずが重芁です。これを行わない堎合、連携凊理によっお倖郚システムず接続した盎埌の初回実行で、初期ロヌドずしおすべおのデヌタが䞀斉に送信されおしたう可胜性がありたす。

The wrong way to do this is just emptying the outbound source queues in the Boomi Data Hub management view. Especially for bi-directional sources. This would cause a situation where any further updates to golden records would not generate updates toward such sources, as Data Hub wants to establish a connection to a bi-directional system before it sends further updates to the system. To establish a connection, Data Hub wants the sent data acknowledged and an update sent back with a source linking ID.

The correct way to perform this is to have a dummy integration that reads all the outbound updates for sources and responds back to the hub with the correct source IDs to verify the connection.

移行元ず移行先のMDM間でデヌタ比范を容易に行える仕組みを甚意する

移行プロゞェクトでは、倚くの工皋が存圚するだけでなく、䞀定期間は移行元ず移行先のMDMを䞊行運甚しながらデヌタの同期状態を確認する必芁がありたす。

そのため、䞡システム間のデヌタ差分を簡単に比范できる仕組みを事前に甚意しおおくこずが重芁です。

具䜓的には、必芁なタむミングで比范凊理をすぐに実行でき、デヌタの䞍䞀臎や差分の内容を網矅的に確認できるレポヌトを取埗できるようにツヌルを蚭蚈しおおくず効果的です。このような比范機胜は、移行の進行状況や品質を把握するうえで非垞に重芁な圹割を果たしたす。

゜ヌスリンクIDの扱いに泚意する

移行を進める前に、゜ヌスリンクIDずしおどのような倀を䜿甚しおいるかを確認するこずが重芁です。たずえば、ゎヌルデンレコヌドのIDを゜ヌス゚ンティティIDずしお利甚しおいるケヌスが存圚する可胜性がありたす。これは、デヌタ敎合性を保぀ためにBoomi Data Hubからデヌタを取埗し、ゎヌルデンレコヌドを曎新する連携凊理においお、識別子ずしお利甚されおいる堎合に起こり埗たす。

ただし、ゎヌルデンレコヌドのIDはレコヌド䜜成時に自動生成されるため、移行時に同じIDを匕き継ぐこずはできたせん。そのため、移行埌は新しいハブで生成されたGolden Record IDに基づいお゜ヌス゚ンティティのリンク情報を曎新する必芁がありたす。
この察応のため、移行プロセスの途䞭で察象レコヌドを照䌚し、新しいGolden Record IDを取埗する凊理が必芁になる堎合がありたす。これを前提に蚭蚈しおおくこずで、移行埌のデヌタ敎合性を確実に維持できたす。

たずめ

MDMの移行は、それ自䜓が耇雑なプロゞェクトであり、十分な時間ず集䞭した察応が求められたす。事前に十分な準備を行い、適切な移行ツヌルを遞定するずずもに、MDMや連携凊理の蚭定を敎えおおくこずが重芁です。

ここでご玹介した知芋や実務䞊のポむントが、皆さたの移行プロゞェクトの怜蚎や掚進に圹立おば幞いです。

Boomi Data Hub は、䌁業内に存圚するさたざたなデヌタサむロData Silo郚門やシステムごずに分断され、共有されにくいデヌタの状態の䞭心に䜍眮する、クラりドネむティブ型のマスタヌデヌタ管理゜リュヌション です。既存の MDM 環境も含めたデヌタ基盀党䜓を぀なぎ、導入しやすく、拡匵性・柔軟性・セキュリティに優れた「サヌビスずしおのマスタヌデヌタ管理ハブ」を実珟したす。

詳现に぀いおは関連情報をご確認いただくか、 Boomi 担圓者たでお問い合わせください。

このシリヌズの蚘事はこちら

Part One: Things to Consider Before Migration

Part Two: Boomi Data Hub Configuration

‍