> For the complete documentation index, see [llms.txt](https://notes.lirenxn.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.lirenxn.com/2019-1/wk-notes-11-08-living-pricing-arch.md).

# Wk-notes-11-08-living-pricing-arch

## Live Pricing Architecture

Micro-services:

* **Api**: fetch price directly from redis and Dynamo
* **Update Pricing Scheduler**: (as master) Schedule pricing cache update
* **Update Pricing Worker**: (as slave, to be scaled) fetch living pricing from **Amadeus** and update redis/Dymano cache&#x20;

Local env:

* Using `docker compose` to set up a local redis and DynamoDB `localstack` for local dev
