Skip to main content
Performance Tuning

Optimize in real-time

Fine-tune caches, pools, and timeouts without deploys

Adjust cache durations, connection pools, retry policies, and timeouts on the fly. Respond to performance issues instantly without waiting for deploys.

The Problem & Solution

Before & after Replane

See how teams transform their workflow

Without Replane

  • Guessing at values

    Cache TTLs and pool sizes are hardcoded. Changing them requires a deploy.

  • Slow iteration

    Testing performance tweaks takes hours with deploy cycles.

  • Can't respond to incidents

    Database slow? You have to deploy to increase timeouts.

  • One-size-fits-all

    Same values for dev and prod. Can't tune per environment.

With Replane

  • Live tuning

    Change values and see immediate impact. Iterate in minutes, not hours.

  • Respond instantly

    Database slow? Increase timeouts immediately. No deploy needed.

  • Environment-specific

    Different values for dev, staging, prod. Same code, different configs.

  • Safe experimentation

    Every change is versioned. Made things worse? Rollback instantly.

Key Features

Optimize without deploying

Fine-tune performance in real-time

Instant Apply

Changes take effect in under a second

No Deploys

Tune performance without code changes

Unlimited Iterations

Tune parameters as often as needed

Instant Rollback

Revert any change with one click

How It Works

Three simple steps

Get up and running in minutes, not hours

1

Monitor under load

Watch your application's performance. Identify bottlenecks and opportunities for optimization.

2

Tune in real-time

Adjust values and see immediate impact. Iterate quickly without deploy cycles.

3

Lock in improvements

Found the sweet spot? Values persist until you change them again.

Benefits

Why teams choose Replane

Built for developers who value speed, reliability, and control

Instant feedback

Change a value, see the effect immediately. Iterate in minutes, not hours.

Respond to load

Traffic spike? Increase connection pools and reduce cache TTLs on the fly.

Safe experimentation

Every change is versioned. Made things worse? Rollback in one click.

Code Examples

Works with your stack

Official SDKs for all major languages and frameworks

1import { Replane } from '@replanejs/sdk'
2import { Pool } from 'pg'
3
4interface Configs {
5 'db-pool-size': number
6 'db-timeout-ms': number
7 'cache-ttl-seconds': number
8 'max-retries': number
9}
10
11const replane = new Replane<Configs>()
12
13await replane.connect({
14 baseUrl: 'https://replane.example.com',
15 sdkKey: process.env.REPLANE_SDK_KEY
16})
17
18// Initialize pool with configurable size
19let pool = new Pool({
20 max: replane.get('db-pool-size'),
21 idleTimeoutMillis: replane.get('db-timeout-ms')
22})
23
24// Resize pool when config changes
25replane.subscribe('db-pool-size', async (config) => {
26 console.log('Resizing pool to:', config.value)
27 await pool.end()
28 pool = new Pool({
29 max: config.value,
30 idleTimeoutMillis: replane.get('db-timeout-ms')
31 })
32})
33
34// Use configurable timeouts and retries
35async function fetchWithRetry(fn: () => Promise<any>) {
36 const maxRetries = replane.get('max-retries')
37
38 for (let i = 0; i < maxRetries; i++) {
39 try {
40 return await fn()
41 } catch (err) {
42 if (i === maxRetries - 1) throw err
43 }
44 }
45}
FAQ

Questions about Performance Tuning

Common questions and answers

Cache TTLs, connection pool sizes, request timeouts, retry counts, batch sizes, and queue depths. Anything you might need to adjust based on load or performance issues.

Subscribe to the config change and reinitialize the pool. Most pooling libraries support dynamic resizing. The SDK makes it easy to react to changes in real-time.

Yes! Use override rules to serve different configs to different request percentages. Compare the performance impact in your observability tools.

Some parameters (like heap size) require a restart. For those, update the config and trigger a rolling restart. For most runtime parameters, changes apply immediately.

Replane pushes updates to all connected clients simultaneously via SSE. All instances receive new values at the same time, ensuring consistent behavior.

Get Started with Performance Tuning

Ready to ship faster?

Start using Replane in minutes. Free forever for self-hosted, or let us manage everything for you.

No credit card required. MIT licensed. Deploy anywhere.