Skip to content

Instantly share code, notes, and snippets.

View pmorelli92's full-sized avatar
🧉
Mate'ing

Pablo Morelli pmorelli92

🧉
Mate'ing
View GitHub Profile
@pmorelli92
pmorelli92 / seed.sql
Last active March 21, 2021 10:59
Reducing loading times by a tenfold with Postgres aggregations
-- Start an instance of postgres
-- docker run --name db -p 5432:5432 -e POSTGRES_HOST_AUTH_METHOD=trust postgres:latest
CREATE DATABASE veterinary;
CREATE TABLE person (
id UUID PRIMARY KEY,
name TEXT
);
@pmorelli92
pmorelli92 / knowledge-base.md
Last active April 7, 2023 09:14
Knowledge base

Knowledge base

All interesting links and reflections throughout time goes here.

Cheat Sheet

Postgres UUID

create extension "uuid-ossp";
@pmorelli92
pmorelli92 / microservices.md
Last active January 15, 2022 18:48
Building Microservices - Sam Newman

WIP - Sam Newman - Building Microservices

  • Take the SRP approach to services. Small, and focused on doing one thing well.
  • The smaller the service the more you maximize the benefits and downsides of microservice architecture.
  • Technology Heterogeneity.
  • Rewrite in 2 weeks.
  • Degrade functionality, don't cascade.
  • Ease of deployment, and scaling.
  • Small, autonomous teams -> Hard to achieve depending on company size.
  • Replaceability.
@pmorelli92
pmorelli92 / main.go
Last active April 13, 2023 20:33
Example bunnify
package main
import (
"context"
"time"
"fmt"
"github.com/pmorelli92/bunnify/bunnify"
)