Service - Sell Offer Manager: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
Line 58: Line 58:
{
{
translateIdsMainId
translateIdsMainId
translateIdRequestId: xxx // toResultId + '_' + toResultTable + '_' + hash(additionalData)
translateIdsRequestId: xxx // toResultId + '_' + toResultTable + '_' + hash(additionalData)
toResultId
toResultId
toResultTable
toResultTable

Revision as of 14:07, 4 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: "SellOfferService"
	configTag: xxx // sellOfferServiceNameTag, 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

Working documents

Sell Offer Manager