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
Follow the Spin Redis documentation to persist questions & answers using a free database from RedisLabs.
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.
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.
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
- Go back to 06 - Deploying to Fermyon Cloud if you still have questions on previous section
- Otherwise, proceed to Bonus - Use SQLite Database in Fermyon Cloud to perform basic Retrieval Augmented Generation