Service - Sell Offer Manager: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
Line 32: Line 32:
}
}
</syntaxhighlight>
</syntaxhighlight>
== SellOffers ==
Records which Handler manages each sell offer
<syntaxhighlight lang="JavaScript">
{
sellOfferId
sellOfferHandlerServiceNameTag
}
</syntaxhighlight>
* partition key: sellOfferId
* sort key: (none)


== TranslateIdsMain ==
== TranslateIdsMain ==

Revision as of 11:51, 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}
	}
}

SellOffers

Records which Handler manages each sell offer

{
	sellOfferId
	sellOfferHandlerServiceNameTag
}
  • partition key: sellOfferId
  • sort key: (none)

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