- 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
-- 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 | |
); |
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
#!/usr/bin/xcrun swift | |
// | |
// Copyright © 2016 Leon Breedt | |
// Ported to Swift 5 by Pablo Morelli 2019 | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 |