TiloBox
Back to directory
Sonic project preview

Sonic

Fast, lightweight and schema-less search backend written in Rust.

LicenseMPL-2.0
GitHub stars19.5k
Last commit1 weeks ago
Tags6 topics
AutocompleteRustLightweightSearch EngineDatabaseFast Search
Overview

Why consider Sonic?

Sonic is an ultra-fast, lightweight search backend designed as a simple alternative to Elasticsearch. It operates like a search indexer daemon with minimal memory usage (under 30MB RAM).

Guided learning

Learn Sonic by building

Practical setup notes, real use cases, and copy-ready examples in one focused guide.

1 min read 3 sections
In this guide3 sections

Overview of Sonic

Sonic acts as a search index gateway rather than a full document store. You store your source documents in PostgreSQL, MySQL, or MongoDB, and push text identifiers to Sonic. When users search, Sonic returns exact matching IDs in sub-millisecond response times.

Running with Docker

bash
1docker run -d \
2 --name sonic \
3 -p 1491:1491 \
4 -v $(pwd)/config.cfg:/etc/sonic.cfg \
5 -v $(pwd)/data/store/:/var/lib/sonic/store/ \
6 valeriansaliou/sonic:latest

Client Protocol Interaction

Connect over TCP using the Sonic protocol or official language SDKs (Node.js, Python, Go):

code
1TRIGGER search messages default "hello world"
2EVENT PENDING search 1234
3EVENT RESULT search 1234 msg_1 msg_42 msg_89

Sonic is distributed under the Mozilla Public License Version 2.0 (MPL-2.0).

Related tools

More options with a similar category or technology profile.

Sonic FAQs

Sonic is listed as a Developer Tools tool on TiloBox. Review the overview, features, and official documentation on this page to decide whether it solves your specific workflow.

Start with the project's GitHub repository for supported installation and deployment instructions. Test the setup with representative data or a small project before rolling it out more widely.

Sonic is listed under the MPL-2.0 license. Read the complete license text and the project's notices before using, modifying, or distributing the software.

Production readiness depends on your requirements. Review maintenance activity, security practices, documentation, backup and upgrade procedures, and compatibility with your stack; then validate it in a non-production environment.

Sonic is listed as an alternative to Elasticsearch. Compare the core workflow, deployment model, integrations, and licensing against your must-have requirements before switching.