Skip to content

Instantly share code, notes, and snippets.

View victorddiniz's full-sized avatar

Victor Durte Diniz Monteiro victorddiniz

View GitHub Profile
@victorddiniz
victorddiniz / Essay.md
Created January 17, 2017 08:55
Campaign Visits Analytics

When working with data storage and manipulation, it is necessary to answer three questions: where is the data going to be stored, how is the data stored and why those decisions are proper for the data manipulation.

To decide where the data is going to be stored, it is necessary to think what is the purpose of the database. As the main application for this database is to analyze campaign visits through its records in a fast way, it is reasonable to choose a database that can compute the queries fast. For that, a key-value storage would be very efficient as, first, the inputs are already in some sort of tuple, and second because with the right schema, all the data needed can be accessed with only one key, as it will be shown with the proposal schema. Redis is the choice in this case because it is very simple to setup and is the leading of the Key-Value storages in the Market.

The first module in the schema is the Tailer, this module will simply decide, d

@victorddiniz
victorddiniz / cassadran-reaper-deployment.yaml
Created August 13, 2018 15:59
Cassandra-reaper kubernetes deployment
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: cassandra-reaper
namespace: cassandra-reaper
spec:
template:
metadata:
labels:
app: cassandra-reaper