Skip to content

Latest commit

 

History

History
26 lines (14 loc) · 1.7 KB

07-external-db.md

File metadata and controls

26 lines (14 loc) · 1.7 KB

Storing key/value data in an external database

Instead of using Spin's built in key/value store, you could use an external key/value store such as Redis. This section is intended as a learning exercise for the user. The complete code can be found here

Rust

Follow the Spin Redis documentation to persist questions & answers using a free database from RedisLabs.

TypeScript

Follow the Spin Redis documentation to persist questions & answers using a free database from RedisLabs. Reference the Spin examples repository for an example TypeScript application that does outbound Redis requests.

Python

Follow the Spin Redis documentation to persist questions & answers using a free database from RedisLabs. Reference the Spin examples repository for a Python example showcasing the use of Spin Redis bindings within a guest component.

Learning Summary

In this section you learned how to:

  • Connect to an external database (in this case, Redis) to persist data from your Spin app using the Redis Spin API

Navigation