microsrv
use case · serverless databases
Serverless databases with scale-to-zero: pay only for active queries
Run PostgreSQL, Redis, and other database workloads in scale-to-zero mode without paying for idle compute around the clock. Your database starts rapidly on demand, spins down compute resources during idle periods, and persists state on replicated NVMe in your private VPC.
$ psql postgresql://app:secret@10.42.0.21:5432/productionpsql (16.4, server 16.4)SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384)Type "help" for help. production=> SELECT count(*) FROM orders WHERE status = 'completed'; count ------- 14892(1 row) # rapid start on demand, scale-to-zero when idleCost Efficiency with Scale-to-Zero
Traditional databases burn infrastructure budget around the clock even with zero traffic. With scale-to-zero, you pay for vCPU and RAM only during active execution, paying only for stored disk blocks during idle pauses.
Pay for Active Compute Only
Compute resources spin down during periods of inactivity, significantly reducing costs for dev branches, staging environments, and scheduled workers.
Rapid On-Demand Startup
Databases spin up without prolonged warm-up delays, immediately ready to handle incoming application transactions.
Full State Persistence
Tables, indexes, and WAL persist safely on replicated NVMe storage, ensuring compute stops never compromise data durability.
Direct Networking with Containers & VMs
Databases run inside the exact same private VPC as your API containers, bots, and workers. Traffic routes directly at the Linux kernel level via eBPF with zero public internet exposure.
Internal Addressing in Your Subnet
SQL queries stay strictly within your private VPC subnet in your configured CIDR range.
Default Isolation
Database ports never face the public internet: only authorized workloads within your private VPC can connect.
WireGuard Access for Developers
Connect directly from your local workstation using familiar GUI tools (psql, DBeaver, TablePlus) through the WireGuard gateway.
Full Databases Without Compromises
No restricted query dialects or proprietary drivers required. Deploy standard PostgreSQL, Redis, or custom data stores directly.
Standard PostgreSQL Compatibility
Full compatibility with all PostgreSQL extensions, standard ORMs, and established migration tooling.
Block-Level Replication
Data mirrors across independent storage nodes to protect against underlying hardware failures.
Isolated Environments
Spin up dedicated databases for each branch or staging environment in seconds without burning idle compute budget.
> capabilities
Advantages of serverless database architecture
Idle savings, rapid startup, and durable NVMe storage in an isolated private network.
Scale-to-Zero
Stop vCPU and RAM during inactivity to cut infrastructure costs on dev and staging environments.
Rapid Startup
Fast database spin-up without waiting for heavy multi-node cluster provisioning.
Replicated NVMe Disks
Synchronous block mirroring across storage nodes for hardware failure protection.
Private VPC Network
Direct low-latency access inside your chosen subnet with zero public IP exposure.
WireGuard Gateway
Manage databases directly from local development tools (TablePlus, DBeaver, psql).
Containers & VMs in Same VPC
Run bots, APIs, and background workers with direct low-latency database access in a shared VPC.
Containers →
Deploy a serverless database
Create a PostgreSQL instance in your private VPC, pay only for active time, and connect your workloads.