Which design pattern to use for pre-process process and post-process task

0 votes
I'm developing a data migration engine to move data from an older system to a newer one. It's broken down into three sections.

First, obtaining data from earlier tables.
Second. Prepare the request body for API post-processing processes to insert into new tables.
And finally. Which design pattern should I use in this case?

I was considering using the building pattern.

In the next phase, I'll make additional API calls to insert data into new tables. This has some structure to it. If an API request fails in the middle, all prior API calls must be redone. some sort of rewinding mechanism What is the best way for me to accomplish this?
Jun 8 in C# by pranav
• 2,320 points
10 views

1 answer to this question.

0 votes
You have pre-defined and precise steps to follow here. The template design pattern works effectively in this scenario.

The order of the calling steps is defined, and the responsibility for each step can be divided into different classes before being linked on the template management class.

Use this to learn more: https://refactoring.guru/design-patterns/template-method
answered Jun 9 by rajiv
• 1,620 points

Related Questions In C#

0 votes
1 answer

Awesome ASP.NET and C# tutorials for beginners

Go here https://dotnet.microsoft.com/en-us/learn/aspnet They have some nice tutorials ...READ MORE

answered Jun 17 in C# by jyoti
• 1,140 points
15 views
0 votes
1 answer

When to use abstract classes

When you need a class for inheritance ...READ MORE

answered Jun 17 in C# by jyoti
• 1,140 points
10 views
0 votes
1 answer

Beginners book for .NET and C#

It depends on how proficient you are ...READ MORE

answered 5 days ago in C# by jyoti
• 1,140 points
10 views
0 votes
1 answer

How to quickly code and run small C# code

I personally use this LINQPad for this. ...READ MORE

answered 3 days ago in C# by krishna
• 1,340 points
7 views
0 votes
0 answers

No connection could be made because the target machine actively refused it?

 I was doing HttpWebRequest to a WebService ...READ MORE

May 5 in Others by Kichu
• 19,040 points
275 views
0 votes
0 answers

A Generic error occurred in GDI+ in Bitmap.Save method

I am trying to copy a thumbnail ...READ MORE

May 23 in Others by Kichu
• 19,040 points
43 views
0 votes
1 answer

How to implement SOLID principles into an existing project

It will be a lengthy procedure. You ...READ MORE

answered Jun 14 in C# by krishna
• 1,340 points
10 views
0 votes
1 answer

Solid Principle examples

I am not a specialist like others, ...READ MORE

answered Jun 14 in C# by jyoti
• 1,140 points
11 views
0 votes
1 answer

What is the best C# to VB.net converter

Telerik has a solid SharpDevelop-based converter that ...READ MORE

answered May 30 in C# by rajiv
• 1,620 points
19 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP