Front-end
...
SNS: dev-plk-delivery-quote-outcome
SQS: aws-rbi-dev-plk-apply-delivery-service-quote
Lambda: sls-rbi-dev-plk-orders-delivery-service-apply-quote ( intl-orders-service)
Which get the message and updates the current order in the database (dynamodb)
Proposal:
Enhance this lambda function (dev-plk-delivery-on-apply-quote) to not overwrite discount and service fees with zeroes. It should keep the value from launchdarkly.
Configure launchdarkly to fit business needs enabling FE to show fees and discounts properly.
discount <> 0
serviceFee <> 0
fee <> 0
...
In partners service, create quote flow calls both in delivery : quote_create and quote_apply
...
The following flows are triggered whenever an order is updated in the database, so that the fee amounts are properly read by the API services and returned to the caller.
...
intl-data-service: Dynamodb order mutated (updated to createDelivery) from queue ORDER_UPDATED_TOPIC_ARN
...
processMessage
...
intl-orders-service
processMessage
requestTransportation
createDelivery / Quote flows
...
Architecture
...
...
Problems detected in DEV:
...