Architecture
Nept is built on a distributed system designed to deliver content with minimal latency and maximum reliability. Our architecture abstracts away the complexity of infrastructure management, allowing you to focus purely on your code.
The Global Edge Network
When you deploy to Nept, your application isn't just sitting on a single server. It's instantly replicated across our global edge network, consisting of 35+ regions interconnected by a private, high-speed backbone.
- Anycast Routing: Incoming requests are automatically routed to the nearest edge node via Anycast BGP, ensuring the lowest possible latency for your users, regardless of their location.
- Smart Caching: Static assets are cached at the edge. Our intelligent invalidation system ensures that your users always see the latest version of your site immediately after a deployment.
Serverless Isolation
Dynamic compute workloads, such as API routes and Server-Side Rendering (SSR), are executed in secure, isolated sandboxes.
- Micro-VMs: We use lightweight micro-VMs (Firecracker) to isolate your functions. This provides the security of a traditional VM with the startup speed of a container.
- Cold Starts: Our warm-pool architecture minimizes cold starts, typically keeping them under 100ms.
- Ephemeral Filesystem: Each execution environment has a temporary filesystem. Persistent data should be stored in an external database or storage service (like S3).
Asset Optimization
Nept automatically optimizes your assets during the build process to improve performance.
- Image Optimization: Images are resized and converted to modern formats (AVIF, WebP) on the fly.
- Script Minification: JavaScript and CSS bundles are minified and compressed (Brotli/Gzip) to reduce payload size.
- Font Subsetting: We automatically subset Google Fonts to include only the glyphs used on your page.
"The best infrastructure is the one you don't have to think about." — Nept Philosophy