Skip to content

Commit

Permalink
mention caching as a potential use case for Redis
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys committed Aug 15, 2024
1 parent a78ca47 commit ac6b6ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion happy-path/redis.html.markerb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ order: 7
[Upstash Redis](https://fly.io/docs/reference/redis/) is used by this application for its [pubsub](https://redis.io/docs/latest/commands/?group=pubsub)
capabilities, but it can do [so much more](https://upstash.com/docs/redis/overall/rediscompatibility).

In particular, Redis is useful for caching:
[Node](https://redis.io/learn/develop/node/nodecrashcourse/caching),
[Rails](https://guides.rubyonrails.org/caching_with_rails.html#activesupport-cache-rediscachestore).

In this application, updates are broadcast to all machines via Redis, and then each machine informs browser clients
of the update via [WebSockets](https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API). Client the request
updated information from the application using HTTP GET.
updated information from the application using HTTP GET.

0 comments on commit ac6b6ab

Please sign in to comment.