Categorygithub.com/cockroachlabs/wikifeedia
modulepackage
0.0.0-20210623022019-a0d54a67a104
Repository: https://github.com/cockroachlabs/wikifeedia.git
Documentation: pkg.go.dev

# README

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.

# Packages

No description provided by the author
Package db contains logic for interacting with the database.
No description provided by the author
Package wikipedia is a simple client driver for the wikipedia HTTP api.