Working on an app with following steps
1) fetch data from external API
2) write data to Adobe Analytics
currently I only have one action that both makes the fetch request and later the push data request. but I think it might be better to have 2 seperate actions, one for the data fetch and the other for the push data. basically passing data to second action (temp storage?) and second actions makes the data push.
this way I might re-use the second action for other data pushes later on - just handing over data and some parameters for the data push and done.
but I could as well write modules that are included in the single actions and re-use those for other actions.
any feedback what is the better approach? having a single "workflow" approach (get data and push) in one action or separate? if separate, any tips how to hand over the data?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Really good answer from @duypnguyen, unfortunatelly as a comment so I can't mark it as answer - Copy comment her to mark as answer:
Good discussions over here. Chaining of action in I/O Runtime (or Openwhisk at its core) is called sequence, which you can read more about here: https://github.com/AdobeDocs/adobeio-runtime/blob/master/reference/sequences_compositions.md#sequenc...
Example of sequence definition in the manifest.yml of a Firefly project:
sequences: authenticate: actions: 'login, check, redirect' web: 'yes'
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
@eldhov19157560 do you have a link for the action chaining?
Views
Replies
Total Likes
Good discussions over here. Chaining of action in I/O Runtime (or Openwhisk at its core) is called sequence, which you can read more about here: https://github.com/AdobeDocs/adobeio-runtime/blob/master/reference/sequences_compositions.md#sequenc...
Example of sequence definition in the manifest.yml of a Firefly project:
sequences:
authenticate:
actions: 'login, check, redirect'
web: 'yes'
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Really good answer from @duypnguyen, unfortunatelly as a comment so I can't mark it as answer - Copy comment her to mark as answer:
Good discussions over here. Chaining of action in I/O Runtime (or Openwhisk at its core) is called sequence, which you can read more about here: https://github.com/AdobeDocs/adobeio-runtime/blob/master/reference/sequences_compositions.md#sequenc...
Example of sequence definition in the manifest.yml of a Firefly project:
sequences: authenticate: actions: 'login, check, redirect' web: 'yes'
Views
Replies
Total Likes