Wrap up
For the complete documentation index see: llms.txt
All documentation pages available in markdown.
You connected a FastAPI retail application to Aerospike Database, implemented the data-access layer with the Python SDK, and used Voyager to inspect and edit live records.
Outcomes
You now have a fully working retail application backed by Aerospike. Specifically:
store_product,get_product,query,advanced_search,get_cart, andadd_to_cartare all implemented against the live cluster.- The
add_to_cartflow uses a check-and-set update against a nested map document to make concurrent updates safe. - You can browse, filter, and edit the underlying data in Voyager.
If you want to compare your implementation to a reference, look at the key_value_service_new_client_answers.py module in the sample repository.
Clean up
Stop the FastAPI application and the Aerospike Database container so they do not occupy ports 8080 and 3000 to 3003 after you finish.
-
In the terminal that is running the FastAPI application, press
Ctrl+Cto stop the server. -
From the
aerospike-client-sdk-workshoprepository root, stop and remove the Aerospike container.Terminal window docker compose down[+] Running 2/2✔ Container aerospike-workshop Removed✔ Network aerospike-client-sdk-workshop_default RemovedExample response This command stops and removes the
aerospike-workshopcontainer and its network. The named volumeaerospike-client-sdk-workshop_aerospike-dataremains, so the records you wrote in this tutorial are still present the next time you rundocker compose up -d. -
(Optional) Delete the data volume to start fresh next time.
Terminal window docker compose down --volumes -
(Optional) Disconnect Voyager from the local cluster, or remove the cluster entry, so it does not try to reconnect when you next launch Voyager.