Skip to main content

Scaling and Performance

Hystersis is designed for horizontal scalability. This guide covers architecture patterns, caching strategies, and performance optimization for production workloads.

Architecture Patterns

Horizontal Scaling

The API server is stateless and can be horizontally scaled behind a load balancer:

Read Replicas

For read-heavy workloads, deploy Neo4j read replicas:

Caching Strategy

Tiered Caching

Cache Invalidation

Hystersis uses write-through caching with automatic invalidation:
  • Memory writes invalidate L1 and L2 caches
  • Entity updates invalidate related caches
  • Search results are cached with configurable TTL

Database Optimization

Neo4j Tuning

Qdrant Configuration

Connection Pooling

Performance Targets

Scaling Guidelines

See Also