Being a new bee in temporal world I was trying to develop a workflow where I have 2 activities and sub tasks as below,
- Consume request
1.1 authenticate request
1.2 validate and parse - Connect to third-party api and send back final response
2.1 prepare request
2.2 sign payload
2.3 send and get response from thirdparty
To achieve this I can follow any of below approaches,
- Create 2 activities for main tasks
- Create 5 activities for each sub task
As per the best practice, what are the pros and cons of these 2 approaches?
I was thinking to perform all the tasks (thats part of single logical transaction) to be wrapped in single activity. that
s approach 2…is this understanding correct?