Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.nearbase.dev/llms.txt

Use this file to discover all available pages before exploring further.

Overview

An instance class defines the CPU and memory allocated to your database. Nearbase offers three tiers: Economical, Basic, and Dedicated.

Class Code Format

Instance class codes follow this pattern:
pg.{tier}.{size}.{variant}
SegmentMeaning
pgPostgreSQL engine
{tier}n1e = Economical · n2 = Basic · n4 = High-Perf · x8 = Dedicated
{size}small, medium, large, xlarge, etc.
{variant}vCPU and memory variant within the size class
For example, pg.n2.1c.1m is a Basic instance with 1 vCPU and 1 GB memory.

Tiers

Entry-level instances at the lowest price point. Suitable for development, staging, and low-traffic production apps.Best for: Side projects, internal tools, low-traffic apps, dev/test environments.
Economical instances (pg.n1e.*) are not available in the following regions: ap-northeast-1 (Tokyo), ap-southeast-3 (Kuala Lumpur), and ap-southeast-7 (Bangkok). Choose Basic or Dedicated for those regions.
General-purpose and high-performance burstable instances. Balanced CPU and memory for most production workloads.Best for: Production web apps, APIs, moderate-traffic SaaS workloads.Available in all 10 Nearbase regions.
Dedicated CPU instances with high memory-to-CPU ratio (8 GB RAM per vCPU). Designed for CPU-intensive queries, analytics, and latency-sensitive workloads that cannot tolerate CPU sharing.Best for: Analytics, reporting, high-concurrency production databases, workloads requiring consistent low-latency query performance.Available in all 10 Nearbase regions.

How to Choose

ScenarioRecommended Tier
Development / staging environmentEconomical
Low-traffic production appEconomical / Basic
Standard web app or API backendBasic
High-concurrency or latency-sensitiveBasic (n4) / Dedicated
Analytics / reporting queriesDedicated
Large dataset, CPU-intensive workloadDedicated

Scaling

You can change your instance class at any time from the instance detail page. Scaling is handled by the platform with minimal interruption. Your billing is adjusted on a prorated basis for the remainder of the billing period.
Start with a smaller class and scale up as needed. Nearbase supports vertical scaling without data migration.