Catalogue / hashnode-2023-architecture

Hashnode serves blogs through Vercel and Stellate edge caches over a serverless GraphQL API on AWS, with Stellate purged by events

Hashnode, 2023. Hashnode blogging and community platform.

Organisation
Hashnode
Evidence
Reported from production
Source
Hashnode's Overall Architecture

Hashnode Engineering, published 2023-10-10

Records

Decision#d1

Keep a very short stale-while-revalidate page cache in front of an always up-to-date API cache

Decision#d2

Cache GraphQL responses at the edge for a long time and purge them from event consumers

Decision#d3

Build a new serverless GraphQL API on AWS while two legacy APIs stay in use

Decision#d4

Emit an event for every user action and run follow-up work in serverless AWS consumers

Decision#d5

Precalculate personalised feeds in Redis for daily active users

Decision#d6

MongoDB on Atlas as the main database

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.