Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

cockroachlabs/wikifeedia

Repository files navigation

wikifeedia

A Feed for top Wikipedia articles.

This is a sample application highlighting the benefits of using CockroachDB, specifically Follower Reads.

Architecture

The backend has two components, the server and the crawler which are both compiled into the same wikifeedia binary. These components are a simple go application. The crawler pulls the top articles list from the wikipedia API and then retrieves the relevant article information and writes it to the db.

The server provides a minimal graphql schema to retrieve the articles and serves the static assets. GraphQL was chosen over a simple HTTP endpoint mostly just as a way for the author to experiment with Apollo in the client.

The backend is deployed on k8s with servers running in multiple regions and a crawler run as a cron job in just one.

The web app uses React and Apollo.