Dub is an open-source link management tool tailored for the evolving needs of modern marketing teams to create share and track short links. Launched just in September 2022, it has an impressive track record with 755 custom domains, 20K short links, 3.5M link redirects, and an overwhelming support of 8K stars on GitHub.
Dub's Technical Stack: Prioritizing Speed and Efficiency with Upstash
- Frontend: Next.js, Typescript
- CSS: Tailwind, Radix UI
- Auth: NextAuth.js
- Deployments & CI/CD: Vercel
- Database(s):
- Upstash Redis for lightning fast link retrieval
- Planetscale for relational SQL storage
- Tinybird for time-series analytics data
- Cron jobs: Upstash QStash
- Payments: Stripe
In this stack, Dub's performance is accelerated further with its strategic database selections: Upstash Redis ensures very fast link retrievals (via key-value pairs): https://github.com/steven-tey/dub/blob/main/lib/upstash.ts. On the automation front, Upstash QStash plays the key role managing cron jobs efficiently https://github.com/steven-tey/dub/tree/main/pages/api/cron.
The Upstash Advantage
Right from the start, Dub has chosen Upstash. According to Dub, two key factors make Upstash stand out: Exceptional Developer Experience (DX) and high-speed performance.
The Upstash JS SDK is incredibly easy to use – all I needed to do was run npm install, initialize the Redis instance, and start running redis commands – super simple! As for performance – our links have sub 200ms redirect times, thanks to Upstash!