- 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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"time" | |
"fmt" | |
"github.com/pmorelli92/bunnify/bunnify" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 | |
); |