metadata

module
v0.0.0-...-33baa99 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: Apache-2.0

README

Incremental Metadata Updates

Metadata is a service which updates our metadata storage. It relies on couple hosted services, but each of the following components should be scalable, fault tollerant and locally testable.

Git Version Control Service

Any git hosting service (like github, bitbucket, gitlab, ...) which exposes webhooks API (so far we only support github webhooks).

Webhook

Can be a Cloud Function or generally HTTP Service which can handle Metadata Events. The main responsibility of Webhook is to receive and publish the event to PubSub Service

PubSub Service

Real-time messaging service. PubSub supports pull and push mechanism to deliver messages.

Subscriber

Can be a Cloud Function or HTTP Service (like webhook). It will be triggered by PubSub Service when the new event arrives (FIFO order is not guaranteed). The main responsibility of Subscriber is to decode and deserialize the event, extract useful metadata, optionally go to the Git Version Control Service for more detailed metadata. This last step (depends on complexity) can be realized either by internal process or by another service. The last step is to update our Metadata Database. Subscriber may additionally backup events in Raw Events Storage.

Metadata Database

Schema based database where all repositories' metadata are stored. It's the main source of data for Metrics API.

Raw Events Storage

Can be Distributted File System or any Storage Service where we can backup raw events (just in case, if we want to re-publish them).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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