Fly.io is a great platform where you can distribute your application globally. When your application is global, your data needs to be global. You can run regular Redis as a Fly.io app but the problem is it is located in a single region. On the other hand, Upstash Redis Global Database perfectly fits Fly.io as it is globally replicated. Moreover, thanks to its REST based SDK, it does not have any connection problem in stateless runtime.
In this article, I will create a basic Node.js application which accesses Upstash Redis and deploy it to Fly.io platform.