Performance on Less Resources: A NoSQL Document Database Usage Example
by Oren Eini

Performance on Less Resources: A NoSQL Document Database Usage Example

 
 

ZAP is one of only two Yellow Pages franchises in the world to go completely digital, discarding its famous phone books a few years back. Today, it is an exclusively online business serving 18 million visits per month.
They needed to fix a series of legacy websites with rapidly deteriorating performance, and increase the amount of information they could provide their users - while retaining top SEO ranking. Performance, especially on mobile devices, is a critical factor in SEO - so time was of the essence.
Follow through this article to see what happened when RavenDB – a NoSQL document database - was put into action.

Follow this article to see how a Yellow Pages Company has doubled performance and tripled the data presented to users while using fewer servers, just by using RavenDB - the NoSQL Document Database.

The Challenges

ZAP manages a portfolio of websites that make over half a million visits a day, with each visit averaging multiple queries to the database. Their job is to show the right data, in the right order, based on some filtered information from the user. They were using both MS SQL Server and ApproxiMATCH, a purpose-built search engine solution, which proved inadequate to handle their increasing workflow.
They needed to hurdle the following obstacles:

  • Slow queries: Very slow queries from the custom-built search solution they were using. Their data platform was unable to sustain minimal required performance levels under the ever-growing load. Some complex queries took over a second to process. Because searching was so slow, they decided to reduce the amount of information the user gets when making a query. The number of returned results has been reduced, along with the amount of data for each result. Their data systems were so slow, they had to cut back their user experience to maintain performance.
  • Expensive database management: Every change to the database costs money, i.e. adding a field to a document or managing the sorting mechanism.
  • Too many servers: For example, 4 servers were required to support the search engine at one of their sites.
  • Too many points of failure: In addition to the search engine component, the databases, and the multitude of servers, workarounds had to be developed to overcome the search engine limitations, adding-up to many points of failure where things can go wrong, thus withholding ZAP from improving their sites.

Leveraging RavenDB - a NoSQL Document Database - Fixed All Issues and Increased Performance

I really, really recommend RavenDB ~ Hagai Albo, CTO, Zap Group

Switching to RavenDB has eliminated all above technical complexities. ZAP was able to build a very fast performing search engine while enjoying the following:

Replication: After trying replication using MSSQL and finding it difficult and expensive, Zap easily managed the same task with RavenDB, using just a few lines of code. Scaling-up was easy – a server can be added with just a few clicks to a data-cluster that is self-managed. Nodes failover, documents conflict resolution, load-balancing, are all self-handled by RavenDB’s distributed system. The data itself is highly-available as RavenDB’s multi-master replication enables users to read and write on any node in the data cluster.

All ZAP's sites are using RavenDB's search capabilities now.

Performance: ZAP’s business model is based on fast data reads. A website speed, which is at the top of SEO considerations, directly impacts sales, especially for online businesses. Amazon found out that for every additional 100ms of latency their users suffer, revenue drops 1%. By using RavenDB, their average page load-time has dropped dramatically. Added to that, the amount of data provided per page has increased, thus providing a better service and user experience. This translated to better site engagement, higher ROI, and more money for the company.

Less Resources: As performance has more than doubled, ZAP was able to reduce the number of deployed servers. Only 2 RavenDB servers were needed to support all their websites.

RavenDB is easy and fast to develop on.

Reduced TCO: Everything they needed was already an integral part of RavenDB, making it easy to set up and use, saving them time and developers’ resources - as well as freeing up the DBA to put out other fires. This dramatically reduced TCO, compounding annual OPEX savings.

Productivity: RavenDB is easy and fast to develop on. In addition to RavenDB’s built-in Facets and Spatial query features that proved extremely useful, ZAP developers could write any query needed very quickly using RavenDB’s C# Client-API which they integrated with. Moreover, query results can be custom-sorted to match specific needs using simple code. While ZAP previously needed to implement their own caching mechanism, they now enjoy the client-server caching that comes with RavenDB out of the box.

GUI for Monitoring and Debugging: RavenDB’s Studio is available on every RavenDB license, even the free community edition. Using the Studio, ZAP easily monitored the databases and the cluster’s state, detecting bottlenecks and problems at real time. Attending the database’s early system warnings enabled fixing mounting irregularities that could have evolved into issues, before becoming hard to handle.

The Bottom Line

White Paper: RavenDB Point of Sale Database

ZAP’s migration to RavenDB serves as a prime NoSQL document database example of what is possible with the right software. Migrating to RavenDB enabled ZAP to do a lot of things better!

  • Their page load time decreased from .7s to .3s after migrating to RavenDB 4.0.
  • Average query time dropped to 10ms.
  • They needed just half the servers they originally did, and less cloud resources should they choose this route.
  • The amount of data they were able to provide their users with per page has doubled, along with additional data that can now be integrated from other sites.
  • They can serve at least 300 queries per second per server. All previous performance constraints were made obsolete by RavenDB.
  • Improved performance was registered with the SEO algorithms. Their traffic increased by 25%.
  • As bounce-rate dropped and site-engagement improved dramatically, pages per visit surged.
  • Zap developers’ productivity has improved as new features can be easily added now, reducing Time-to-Market.

Zapping Ever Faster


About RavenDB
Mentioned in both Gartner and Forrester research, RavenDB is a pioneer in NoSQL database technology with over 2 million downloads and thousands of pleased customers from Startups to Fortune 100 Large Enterprises. RavenDB Features include:
  • Easy to Use
    Easy to install, quick to learn
  • ACID Transactions
    RavenDB is fully-transactional
  • High Performance
    1 million reads & 150,000 writes per second over commodity hardware
  • High Availability
    Multi-master replication over a distributed data cluster
  • Smooth integration with Relational databases
    Easily migrate relational data into RavenDB. ETL data from RavenDB to a relational database
  • Multi-Clients
    C#, Node.js, Java, Python, Ruby, Go
  • Multi-Platform
    Windows, Linux, Mac OS, Docker, Raspberry Pi
  • Multi-Model Architecture
    Documents, Key-Value, Graph Queries, Counters, Attachments, Revisions
  • Authentication and Data Encryption
    Data is secured at rest and in transit
  • Advanced built-in features
    Full-Text Search, Map-Reduce, and Storage Engine
  • Management Studio
    An enjoyable user experience
  • Schema Free

Watch our intro video here!
Grab RavenDB for free and get:
    • 3 cores
    • Our state-of-the-art GUI Studio
    • Connectivity secured with TLS 1.2 and X.509 certificates
    • 6 gigabyte RAM database with up to a 3-server cluster
    • Easy compatibility with cloud solutions like AWS, Azure, and more


Categories:

LIVE
DEMO
Request Live Demo

LIVE DEMO

Request a customized
presentation of RavenDB

Request Live Demo

Request a customized presentation of RavenDB