Service - Variant Standard: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
Line 39: Line 39:
== LogicalResults ==
== LogicalResults ==


Stores results for any requests to perform logical searches on product data
Stores results for any requests to perform logical searches on variant data


<syntaxhighlight lang="JavaScript">
<syntaxhighlight lang="JavaScript">
{
{
resultId: xxx // eg: filterMainId for a single logical element
resultId: xxx // eg: filterMainId for a single logical element
dataId: xxx // one prodictId
dataId: xxx // one variantId
}
}
</syntaxhighlight>
</syntaxhighlight>

Revision as of 12:46, 4 July 2021

Overview

Handler service for the standard variant type.

Repository

https://bitbucket.org/izara-market-products/izara-market-products-variant-standard/src/master/

DynamoDB tables

Standard Config Table Per Service

Configuration tags

{
	configTag: "VariantHandlerServiceNameTag"
	configKey: "VariantHandlerServiceNameTag"
	configValue: xxx // this own services ServiceNameTag, eg "VariantStandard"
}
{
	configTag: "ProductsGraphServiceName"
	configKey: "ProductsGraphServiceName"
	configValue: xxx // eg: "ProductsGraph"
}
{
	configTag: "VariantManagerServiceName"
	configKey: "VariantManagerServiceName"
	configValue: xxx // eg: "ProductManager"
}

LogicalResults

Stores results for any requests to perform logical searches on variant data

{
	resultId: xxx // eg: filterMainId for a single logical element
	dataId: xxx // one variantId
}
  • partition key: resultId
  • sort key: dataId

Graph database

Service - Products Graph

Nodes

{
	nodeLabel: "variant",
	schema: {
		identifier: true,
		restrictProperties: true,
		restrictRelationships: true,
		properties: {
			variantId: {
				identifier: true, //(random uuid)
			},
			variantHandlerServiceNameTag: {
				idempotent: true,
			},
		},
	}
}

Working documents

Variant Standard