wikifeedia

command module
v0.0.0-...-a0d54a6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

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.

Documentation

Overview

Command wikifeedia does something...

Directories

Path Synopsis
Package db contains logic for interacting with the database
Package db contains logic for interacting with the database
Package wikipedia is a simple client driver for the wikipedia HTTP api.
Package wikipedia is a simple client driver for the wikipedia HTTP api.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL