Search
Lessons (40)
- Docker & Containers
… postgres:17 environment: { POSTGRES USER: app, POSTGRES PASSWORD: secret, POSTGRES DB: shop } volumes: [pgdata:/var/lib/postgresql/data …
- Clean Architecture
… translate between the outside world and the use case js // adapters/PostgresUserRepository.js export class PostgresUserRepository { constructor(pool …
- Clean Architecture in Depth
… ports How can a use case save an order without knowing about Postgres? It depends on an interface …
- Docker in Production on a Single Server
… myapp POSTGRES PASSWORD: ${DB PASSWORD} POSTGRES DB: myapp volumes: - pgdata:/var/lib/postgresql/data data survives container restarts …
- Hexagonal Architecture (Ports & Adapters)
… the ways out ts // adapters/driven/PostgresLoanRepository.ts export class PostgresLoanRepository implements LoanRepository { constructor(private readonly db: Pool …
- Month 4: RAG and Knowledge Systems (Weeks 13-16)
Build retrieval-augmented generation on PostgreSQL and pgvector: parsing, chunking, hybrid search, reranking, query rewriting, citations, evaluation and …
- C4 Architecture Diagrams: Context, Container, Component and Code
… The adapter, repository and publisher handle the details of Stripe, PostgreSQL and SQS. This makes an important design …
- StatefulSets, DaemonSets, Jobs and CronJobs
… data mountPath: /var/lib/postgresql/data volumeClaimTemplates: - metadata: name: data spec: accessModes: [ReadWriteOnce] resources: requests: storage: 20Gi Key …
- AWS Databases: Choose the Right One
… managed SQL database RDS runs engines such as PostgreSQL and MySQL while AWS handles hardware, backups, and many …
- Practical Project: Deploy a Real CRM App on EKS
… Create the database (RDS PostgreSQL) The database lives in the private subnets of the cluster VPC and accepts …
- D — Dependency Inversion Principle
… new PostgresOrderRepository(pool), mailer: new SesMailer(awsConfig), }); // Tests: plain fakes, no network const sent = []; const testService = new OrderService …
- Database Indexing & Transactions
… prefer atomic UPDATE … WHERE , then optimistic or pessimistic locking. - Know the isolation levels; Postgres defaults to Read Committed.
- Kafka vs RabbitMQ & the Kafka Ecosystem
… Elasticsearch, S3, Snowflake, BigQuery, MongoDB, Postgres. json { "name": "orders-cdc", "config": { "connector.class": "io.debezium.connector.postgresql.PostgresConnector …
- SQL vs NoSQL Databases
… during a network partition, choose consistency or availability. - Start with Postgres; add specialised stores for specific needs.
- What Is Software Architecture?
… Use PostgreSQL for the orders service Status Accepted (2026-09-28) Context Orders need multi-row transactions (order …
- VPC Networking Without the Confusion
… the app cannot reach PostgreSQL Assume an app in 10.42.10.0/24 connects to a database …
- ACID, Transactions & Locks
… transaction (the "victim") so the other can finish: - PostgreSQL: ERROR: deadlock detected (SQLSTATE 40P01 ) - MySQL / InnoDB: ERROR 1213 …
- Month 5: AI Agents and Tool Orchestration (Weeks 17-20)
… messages, gathered data, scores, approvals. - Checkpointing saves state after every step (for example in Postgres), so runs can …
- 10,000 Users Do Not Need 10,000 Database Connections
… bounded connection pool ↓ 10–20 database connections (example) ↓ PostgreSQL or MySQL A web request spends its time on …
- Indexes, EXPLAIN & Query Plans
… database/slow-query-workflow.svg) The examples use PostgreSQL. MySQL, SQL Server and Oracle have the same ideas …
- Layered (N-Tier) Architecture
… database server"] DB[(PostgreSQL)] end UI -- API -- DB The classic 3-tier web app has three layers of …
- CQRS & Event Sourcing
… fraud detection] Tools: EventStoreDB, Axon, Marten (Postgres), or Kafka as the event log. CQRS + event sourcing together They …
- Referrals, Cold Outreach and Tracking Applications
… I have 3 years with Node.js and PostgreSQL and built a payment service handling 2M requests/day …
- A Resume That Gets Shortlisted
… the job post's exact words (e.g. "PostgreSQL", "CI/CD") Skill bars and star ratings Recommended structure …
- Extending Kubernetes: CRDs, Operators and Admission
… adds a new API type, so kubectl get postgresclusters just works. yaml apiVersion: apiextensions.k8s.io/v1 kind …
- KISS: Keep It Simple, Stupid
… day one"] direction LR App[One app] -- DB[(Postgres)] end Start with the simplest architecture that works, like …
- DevOps and the Path from Code to Server
… Node.js app<br/ systemd service] APP -- DB[(PostgreSQL)] APP -- LOG[📜 journald logs] Every box in this picture …
- Serverless Architecture
… concurrent functions × 1 DB connection each can overwhelm Postgres; use RDS Proxy, Data API, or serverless-friendly DBs …
- Onion Architecture & Clean vs Hexagonal vs Onion
… cases, Hexagonal ports) └── adapters/ driving: http, cli · driven: postgres, stripe (Hexagonal adapters) How these relate to Layered architecture …
- Choosing an Architecture
… Hexagonal + tactical DDD"] oa[HTTP adapter] -- oc((core)) -- ob[(Postgres adapter)] end subgraph Cat["📦 Catalog: vertical slices (mostly …
- From Software Architect to AI Architect: The 24-Week Plan
… Install Docker and PostgreSQL 16 or newer. You add pgvector in Month 4. 5. Install Ollama to run …
- Caching & Redis
… the write path updates PostgreSQL, then returns success while Redis still holds the old value. mermaid sequenceDiagram participant …
- Processes, Services & systemd
… runs on the same server: After=network.target postgresql.service [Service] Type=simple User=deploy Group=deploy WorkingDirectory …
- Go Web Services with Gin
… business rules (no Gin imports!) │ ├── repository.go interface + Postgres implementation │ └── handler.go Gin handlers: HTTP in, HTTP out …
- SSH, Networking & Firewalls
… server 22 = SSH, 80 = HTTP, 443 = HTTPS, 5432 = PostgreSQL localhost / 127.0.0.1 "This same machine". Not …
- AI Architect Reference: Decisions, Glossary, Resources and Career
… https://github.com/pgvector/pgvector) Vector search in PostgreSQL 4 [Ragas](https://docs.ragas.io/) and [DeepEval](https …
- AWS: Start Here
… Execute your business logic Orders and customers RDS PostgreSQL Store structured data with transactions Uploaded covers Private S3 …
- Monitoring, Logs & Backups
… convenient, but on the same provider, so not your only backup A nightly PostgreSQL backup bash !/usr/bin …
- Domain-Driven Design: Tactical Patterns
… application/ │ └── PlaceOrderHandler.ts application services / use cases └── infrastructure/ └── PostgresOrderRepository.ts repository implementation (adapter) Key takeaways - Entities have identity …
- Deploy a Node.js App to a VPS, Step by Step
… EOF' NODE ENV=production PORT=3000 DATABASE URL=postgres://myapp:CHANGE ME@127.0.0.1:5432/myapp …