Service - Sell Offer Manager: Difference between revisions
Jump to navigation
Jump to search
Line 25: | Line 25: | ||
<syntaxhighlight lang="JavaScript"> | <syntaxhighlight lang="JavaScript"> | ||
{ | { | ||
configKey: " | configKey: "SellOfferHandlerService" | ||
configTag: xxx // | configTag: xxx // sellOfferHandlerServiceNameTag, eg: "SellOfferStandard", this is what is saved in each catalog record | ||
configValue: { | configValue: { | ||
serviceName: xxx // eg: "SellOfferStandard", this is the actual deployed service name} | serviceName: xxx // eg: "SellOfferStandard", this is the actual deployed service name} |
Revision as of 11:46, 5 July 2021
Overview
Each sell offer is handled by a Service - Sell Offer (handlers) service.
The Sell Offer Manager service handles shared orchestration of the Sell Offer Handler services.
Repository
https://bitbucket.org/izara-market-products/izara-market-products-sell-offer-manager/src/master/
DynamoDB tables
Standard Config Table Per Service
Configuration tags
{
configKey: "ProductsGraphServiceName"
configTag: "ProductsGraphServiceName"
configValue: xxx // eg: "ProductsGraph"
}
{
configKey: "SellOfferHandlerService"
configTag: xxx // sellOfferHandlerServiceNameTag, eg: "SellOfferStandard", this is what is saved in each catalog record
configValue: {
serviceName: xxx // eg: "SellOfferStandard", this is the actual deployed service name}
}
}
TranslateIdsMain
Stores a record for any unique translateId process
{
translateIdsMainId: xxx // fromType + '_' + fromResultId + '_' + toType
fromType
fromResultId
fromResultTable
toType
status: // "processing"|"complete"
}
- partition key: translateIdsRequestId
- sort key: {none}
TranslateIdsRequests
Stores a record for each translateId request, only when the TranslateIdsMain is not yet complete, so once complete code knows what messages to send out.
{
translateIdsMainId
translateIdsRequestId: xxx // toResultId + '_' + toResultTable + '_' + hash(additionalData)
toResultId
toResultTable
additionalData
}
- partition key: translateIdsMainId
- sort key: translateIdsRequestId