Service - Product Standard: Difference between revisions
Jump to navigation
Jump to search
(Created page with "= Overview = Handler service for the standard product type. = Repository = XXXX = DynamoDB tables = == Standard Config Table Per Service == === Configuration tags ==...") |
|||
(10 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
= Repository = | = Repository = | ||
https://bitbucket.org/izara-market-products/izara-market-products-product-standard/src/master/ | |||
= DynamoDB tables = | = DynamoDB tables = | ||
Line 15: | Line 15: | ||
<syntaxhighlight lang="JavaScript"> | <syntaxhighlight lang="JavaScript"> | ||
{ | { | ||
configTag: " | configTag: "ProductHandlerServiceNameTag" | ||
configKey: " | configKey: "ProductHandlerServiceNameTag" | ||
configValue: xxx // this own services ServiceNameTag, eg "ProductStandard" | configValue: xxx // this own services ServiceNameTag, eg "ProductStandard" | ||
} | } | ||
Line 23: | Line 23: | ||
<syntaxhighlight lang="JavaScript"> | <syntaxhighlight lang="JavaScript"> | ||
{ | { | ||
configTag: " | configTag: "ProductGraphServiceName" | ||
configKey: " | configKey: "ProductGraphServiceName" | ||
configValue: xxx // eg: " | configValue: xxx // eg: "ProductGraph" | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 37: | Line 37: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== LogicalResults == | |||
Stores results for any requests to perform logical searches on product data | |||
<syntaxhighlight lang="JavaScript"> | |||
{ | |||
resultId: xxx // eg: filterMainId for a single logical element | |||
dataId: xxx // one productId | |||
} | |||
</syntaxhighlight> | |||
* partition key: resultId | |||
* sort key: dataId | |||
= Graph database = | = Graph database = | ||
Line 44: | Line 57: | ||
=== Nodes === | === Nodes === | ||
= | <syntaxhighlight lang="JavaScript"> | ||
{ | |||
nodeLabel: "{ProductStandardLib.PRODUCT_GRAPH_NODE_LABEL}", | |||
schema: { | |||
identifier: true, | |||
restrictProperties: true, | |||
restrictRelationships: true, | |||
properties: { | |||
productId: { | |||
identifier: true, //(random uuid) | |||
}, | |||
productHandlerServiceNameTag: { | |||
immutable: true, | |||
}, | |||
}, | |||
} | |||
} | |||
</syntaxhighlight> | |||
== Basic node schemas == | |||
=== product === | |||
[[Service - Media Graph]] | |||
= Working documents = | = Working documents = |
Latest revision as of 12:12, 18 September 2021
Overview
Handler service for the standard product type.
Repository
https://bitbucket.org/izara-market-products/izara-market-products-product-standard/src/master/
DynamoDB tables
Standard Config Table Per Service
Configuration tags
{
configTag: "ProductHandlerServiceNameTag"
configKey: "ProductHandlerServiceNameTag"
configValue: xxx // this own services ServiceNameTag, eg "ProductStandard"
}
{
configTag: "ProductGraphServiceName"
configKey: "ProductGraphServiceName"
configValue: xxx // eg: "ProductGraph"
}
{
configTag: "ProductManagerServiceName"
configKey: "ProductManagerServiceName"
configValue: xxx // eg: "ProductManager"
}
LogicalResults
Stores results for any requests to perform logical searches on product data
{
resultId: xxx // eg: filterMainId for a single logical element
dataId: xxx // one productId
}
- partition key: resultId
- sort key: dataId
Graph database
Service - Products Graph
Nodes
{
nodeLabel: "{ProductStandardLib.PRODUCT_GRAPH_NODE_LABEL}",
schema: {
identifier: true,
restrictProperties: true,
restrictRelationships: true,
properties: {
productId: {
identifier: true, //(random uuid)
},
productHandlerServiceNameTag: {
immutable: true,
},
},
}
}