HeadlinesBriefing HeadlinesBriefing.com

Circleback Rewrites Search From Postgres to Rust Orion Engine

Hacker News •
×

Circleback has rewritten its search infrastructure from the ground up, replacing a Postgres-based system with its own Rust engine, Orion. The transition addressed severe performance and scalability issues stemming from a 1.7 TB vector database in Postgres with no index, which caused 40-second search times and app slowdowns as data was pushed from memory. The new system delivers instant search, finds more results, and reduces costs significantly.

Key to the redesign was moving vector generation in-house, eliminating the need for a separate embedding service. Orion stores the index in cheap blob storage (S3/Google Cloud), keeping frequently accessed parts in memory and on local disk for fast reads. The architecture provides per-meeting isolation and sharding, ensuring data never leaves the company's cloud account.

With search volume spiking 18x year-over-year—reaching 3.5 million searches in October, 90% from agents—the rewrite was necessary to support growth. The engine uses a write-optimized file system with background compaction to handle new data without race conditions. This internal solution offers cheap cold storage with warm performance, a design choice driven by the rarity of searches on old meetings.

Source: Hacker News · Summarized by HeadlinesBriefing