deploy TodoService -> cluster "prod-cluster" replicas: 3 resources: cpu: "500m", memory: "512Mi" autoscale: min: 2, max: 8, cpuThreshold: 70 env: DATABASE_URL: secret(db.conn)
resource "aws_db_instance" "todo_db" instance_class = "db.t3.micro" engine = "postgres" allocated_storage = 20 availability_zone = "us-east-1a" # ... generated credentials stored in vault Neoprogrammer V2.2.0.10
export const router = Router();
— End of paper —
module TodoService : type Todo = id: UUID, title: String, done: Bool resource db : Postgres plan: "small", region: "us-east-1" api GET /todos -> List<Todo> handler: listTodos api POST /todos -> Todo handler: createTodo, validate: createTodoSchema deploy TodoService ->
References and further reading (Conceptual platform — references omitted.) memory: "512Mi" autoscale: min: 2