Skip to content

zadarastorage/billing-interview-questions

Repository files navigation

README

The repository contains a simplified app for a billing service. Compute clusters send a report to S3 per virtual machine on every change / 24 hours. The billing service fetches reports from S3 and process them. The billing service processing will create events of changes for virtual_machines that can be later used to create invoices. In this demo we will use file based reports and not S3, but please assume the production service will use S3.

Running the billing service

rake run_reports_handler

Deleting and copying reports from template

rake fetch_and_process

DB schema

compute_cluster

uuid    string
name    string

virtual_machine

uuid    string
status  string
compute_cluster_id  integer
created_at  datetime
updated_at  datetime
deleted_at  datetime
deleted boolean

event

created_at  datetime
vm_id       integer
event_type  string

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published