Couchbase offer FTS but how good and fast it is if you add right indexes and make right optimizations ?
I have seen some blogs where people used elasticsearch instead of fts because they used too cpu when they have a lot of fts and other concurrent requests. Is it ok to use it when you are at the begining and if you app growth then you can migrate to elastic search but for begining is it fast enough ?
Couchbase’s Full Text Search (FTS) is capable of handling hundreds of millions of documents, indexing from a single field to hundreds of fields per document. The efficiency and speed of FTS, as well as its CPU usage, can be subjective and largely depend on the specific use case and configuration.
In terms of performance, both Couchbase and Elasticsearch deliver results in low milliseconds. It’s important to note that while dedicated systems like Elasticsearch might be slightly faster and more efficient in handling extensive FTS tasks (imy experience is that Elastic might potentially 1.5 times faster in scenarios involving hundreds of millions of documents with the same hardware), however Couchbase can achieve comparable performance with appropriate resource allocation.
One key advantage of Couchbase is its scalability. It can scale horizontally by adding more nodes and vertically by adding more cores. This scalability, combined with its integration with other services like Query with GSI indexes, Analytics, Eventing, and Key-Value storage, makes it a robust choice.
For startups or projects at an early stage, Couchbase’s FTS can be a suitable choice. It offers a balance of performance and integrated features that can support growth. As your application scales and if your FTS requirements become more demanding, evaluating a transition to a dedicated system like Elasticsearch might be beneficial. However, for all applications, Couchbase’s FTS will continue to be sufficient even as they grow with the added benefit that you only have one point of support and your operation headaches of supporting multiple vendors releases and upgrades drop significantly.
Best
Jon Strabala
Principal Product Manager - Server‌