Enterprise

Why Monday.com decided to build its new database instead of buying one

Comment

Database tables connected together on a blue background.
Image Credits: enot-poloskun / Getty Images

Monday.com launched more than a decade ago looking to help companies build a highly flexible set of business tools like CRM, marketing, operations and HR, built in customized ways you simply couldn’t find out of the box. It learned that companies not only liked that flexibility, but they also pushed the boundaries so far that it was going to outpace the ability of the underlying database technology to continue to handle all of the use cases.

So the company began looking for a replacement. With myriad database choices available off-the-shelf, you would think finding a suitable one would only be a matter of time and testing, but after reviewing several options, and talking to some experts, Monday concluded it needed something more than what was available in the market.

One of the main issues was flexibility; Monday.com had no idea how its customers would fashion the building blocks into applications. That meant it needed a schemaless database to handle whatever customers decided to build. That’s when it decided to build its own, but with a twist: It wouldn’t build a single database to take over all the future capabilities. Instead, it would layer on some other databases to handle particular tasks. It called the new solution MondayDB.

The new database has been in place since July, but as the company makes the transition to the new database, the old one still exists as another layer in the complexity that is Monday.com architecture.

Startups have to realize that no matter how careful they may be with technology choices — and often it’s impossible, as they struggle to get a product to market — there is no way to anticipate how products will grow and develop over time. That said, at some point, companies will have to pay off their technical debt by starting with some entirely new architecture, just as Monday.com has had to do.

We sat down with chief product and technology officer Daniel Lereya to learn how the team decided to build this solution and the challenges it faced in finding a database technology to meet these unique requirements.

Just another manic Monday

The process that led to building a database has been ongoing for a couple of years. In fact, in January 2021, the company began exploring ideas for a new database with a completely open mind. Lereya says the reason customers value Monday.com is the flexibility it brings, and the company needed a solution that could manage an adaptable approach.

The basic building block of Monday is called the “board,” which is a table designed to hold a variety of information types. The company described it in a blog post announcing the new database:

We offer over 40 types of columns, and our users enjoy the freedom to filter, sort, or aggregate just about any column combination, each with its own logic for such operations. For instance, if you filter by person, you can do so by their email, name, or even the team they’re a part of.

“When we built Monday.com, we put a lot of emphasis on giving people the building blocks to [essentially] build their own software themselves,” Lereya told TechCrunch+. These building blocks are boards that users can build in a dizzying array of ways.

When the company began thinking about this at the beginning of 2021, it started with the idea that it wanted to enable companies to scale to basically whatever they wanted to do, which would require a new database approach.

“We felt that we didn’t want to do just incremental improvements, but we thought that strategically, knowing also that we were going to continue and go up market in the future, we needed a much more robust solution that will support all these specific and unique needs,” Lereya said.

Monday morning, you sure look fine

The original thinking was that with so many databases on the market, surely there would be one that would meet its requirements, and in June 2021, the company formed a team to begin exploring the available options.

The group did a comprehensive search that included the likes of Elasticsearch, Apache Pinot, ClickHouse, Apache Druid and a wide range of NoSQL databases like CockroachDB, Couchbase, and others, according to the company.

“We assembled a document with all the requirements for this database . . . and we actually came to the realization that there is no one specific database that answers our needs. And with that, we decided to go for the MondayDB project,” he said.

Even after talking to a number of companies and experts in the space and building some detailed PoCs, in the end, Monday.com found that none of them really met a list of requirements.

In August 2021, it began building the new solution with a small team of just five engineers. It would take more than a year to get to beta. That was partly because of the complexity, partly because it was a small team and partly because the team wanted to build for the long haul and take time to get it right.

As time went on, the team grew, but each of the core Monday components like boards, dashboards and others needed to change to work with the new database. So ultimately the project touched just about every part of the engineering organization.

Interestingly, what Monday.com came up with was not a pure build-versus-buy decision. “We didn’t build the database technology by itself. We leveraged existing databases, so it was a combination of technologies together with our own layers that became the MondayDB solution,” Lereya said.

The final idea includes this entirely new database on top of the old database along with Cassandra, Redis and MySQL. That’s a lot of database technology, but it needed every bit of it to make the entire package work for each customer use case.

Come Monday, it’ll be alright

The company began testing the new database internally in September 2022 with the plan to run both the old database and the new MondayDB simultaneously and act as a kind of check against each other. That way Monday.com could make sure that MondayDB was behaving as expected against all of the components and all of the ways that customers use the product.

“First of all, we got to a phase where we wanted MondayDB in terms of the data to run side by side with our current architecture. We thought about it like a shadow mode where we do everything on both the old architecture and the new architecture,” Lereya said.

When Monday.com gave it to initial customers to test, the company made sure that the new database wouldn’t break anything because it had the ability to roll back if needed. Over time, Monday.com merged in more and more customers before making the official release in July 2023.

But the old database didn’t get replaced. “It’s running concurrently. And actually if you remember, the original database is MySQL, and there are cases in which it’s better to query that database,” Lereya said. “So actually it’s part of the solution and MondayDB is an additive layer and not a replacement.”

With the new database, the company was able to increase capacity 10x, which translates into 500 boards per dashboard, 1 million items per board and 5 million items per dashboard. What’s more, they built this with five nines of data integrity (meaning it is correct 99.999% of the time) with 5x the speed from the previous database and the ability to build in automations that move data to the right place automatically.

And the release of MondayDB 1.0 isn’t an ending, it’s a beginning. The company is looking to continue layering on functionality and make the database as responsive as possible to whatever use cases customers throw at it.

More TechCrunch

Meta’s Oversight Board has now extended its scope to include the company’s newest platform, Instagram Threads, and has begun hearing cases from Threads.

Meta’s Oversight Board takes its first Threads case

The company says it’s refocusing and prioritizing fewer initiatives that will have the biggest impact on customers and add value to the business.

SeekOut, a recruiting startup last valued at $1.2 billion, lays off 30% of its workforce

The U.K.’s self-proclaimed “world-leading” regulations for self-driving cars are now official, after the Automated Vehicles (AV) Act received royal assent — the final rubber stamp any legislation must go through…

UK’s autonomous vehicle legislation becomes law, paving the way for first driverless cars by 2026

ChatGPT, OpenAI’s text-generating AI chatbot, has taken the world by storm. What started as a tool to hyper-charge productivity through writing essays and code with short text prompts has evolved…

ChatGPT: Everything you need to know about the AI-powered chatbot

SoLo Funds CEO Travis Holoway: “Regulators seem driven by press releases when they should be motivated by true consumer protection and empowering equitable solutions.”

Fintech lender SoLo Funds is being sued again by the government over its lending practices

Hard tech startups generate a lot of buzz, but there’s a growing cohort of companies building digital tools squarely focused on making hard tech development faster, more efficient and —…

Rollup wants to be the hardware engineer’s workhorse

TechCrunch Disrupt 2024 is not just about groundbreaking innovations, insightful panels, and visionary speakers — it’s also about listening to YOU, the audience, and what you feel is top of…

Disrupt Audience Choice vote closes Friday

Google says the new SDK would help Google expand on its core mission of connecting the right audience to the right content at the right time.

Google is launching a new Android feature to drive users back into their installed apps

Jolla has taken the official wraps off the first version of its personal server-based AI assistant in the making. The reborn startup is building a privacy-focused AI device — aka…

Jolla debuts privacy-focused AI hardware

OpenAI is removing one of the voices used by ChatGPT after users found that it sounded similar to Scarlett Johansson, the company announced on Monday. The voice, called Sky, is…

OpenAI to remove ChatGPT’s Scarlett Johansson-like voice

The ChatGPT mobile app’s net revenue first jumped 22% on the day of the GPT-4o launch and continued to grow in the following days.

ChatGPT’s mobile app revenue saw its biggest spike yet following GPT-4o launch

Dating app maker Bumble has acquired Geneva, an online platform built around forming real-world groups and clubs. The company said that the deal is designed to help it expand its…

Bumble buys community building app Geneva to expand further into friendships

CyberArk — one of the army of larger security companies founded out of Israel — is acquiring Venafi, a specialist in machine identity, for $1.54 billion. 

CyberArk snaps up Venafi for $1.54B to ramp up in machine-to-machine security

Founder-market fit is one of the most crucial factors in a startup’s success, and operators (someone involved in the day-to-day operations of a startup) turned founders have an almost unfair advantage…

OpenseedVC, which backs operators in Africa and Europe starting their companies, reaches first close of $10M fund

A Singapore High Court has effectively approved Pine Labs’ request to shift its operations to India.

Pine Labs gets Singapore court approval to shift base to India

The AI Safety Institute, a U.K. body that aims to assess and address risks in AI platforms, has said it will open a second location in San Francisco. 

UK opens office in San Francisco to tackle AI risk

Companies are always looking for an edge, and searching for ways to encourage their employees to innovate. One way to do that is by running an internal hackathon around a…

Why companies are turning to internal hackathons

Featured Article

I’m rooting for Melinda French Gates to fix tech’s broken ‘brilliant jerk’ culture

Women in tech still face a shocking level of mistreatment at work. Melinda French Gates is one of the few working to change that.

1 day ago
I’m rooting for Melinda French Gates to fix tech’s  broken ‘brilliant jerk’ culture

Blue Origin has successfully completed its NS-25 mission, resuming crewed flights for the first time in nearly two years. The mission brought six tourist crew members to the edge of…

Blue Origin successfully launches its first crewed mission since 2022

Creative Artists Agency (CAA), one of the top entertainment and sports talent agencies, is hoping to be at the forefront of AI protection services for celebrities in Hollywood. With many…

Hollywood agency CAA aims to help stars manage their own AI likenesses

Expedia says Rathi Murthy and Sreenivas Rachamadugu, respectively its CTO and senior vice president of core services product & engineering, are no longer employed at the travel booking company. In…

Expedia says two execs dismissed after ‘violation of company policy’

Welcome back to TechCrunch’s Week in Review. This week had two major events from OpenAI and Google. OpenAI’s spring update event saw the reveal of its new model, GPT-4o, which…

OpenAI and Google lay out their competing AI visions

When Jeffrey Wang posted to X asking if anyone wanted to go in on an order of fancy-but-affordable office nap pods, he didn’t expect the post to go viral.

With AI startups booming, nap pods and Silicon Valley hustle culture are back

OpenAI’s Superalignment team, responsible for developing ways to govern and steer “superintelligent” AI systems, was promised 20% of the company’s compute resources, according to a person from that team. But…

OpenAI created a team to control ‘superintelligent’ AI — then let it wither, source says

A new crop of early-stage startups — along with some recent VC investments — illustrates a niche emerging in the autonomous vehicle technology sector. Unlike the companies bringing robotaxis to…

VCs and the military are fueling self-driving startups that don’t need roads

When the founders of Sagetap, Sahil Khanna and Kevin Hughes, started working at early-stage enterprise software startups, they were surprised to find that the companies they worked at were trying…

Deal Dive: Sagetap looks to bring enterprise software sales into the 21st century

Keeping up with an industry as fast-moving as AI is a tall order. So until an AI can do it for you, here’s a handy roundup of recent stories in the world…

This Week in AI: OpenAI moves away from safety

After Apple loosened its App Store guidelines to permit game emulators, the retro game emulator Delta — an app 10 years in the making — hit the top of the…

Adobe comes after indie game emulator Delta for copying its logo

Meta is once again taking on its competitors by developing a feature that borrows concepts from others — in this case, BeReal and Snapchat. The company is developing a feature…

Meta’s latest experiment borrows from BeReal’s and Snapchat’s core ideas

Welcome to Startups Weekly! We’ve been drowning in AI news this week, with Google’s I/O setting the pace. And Elon Musk rages against the machine.

Startups Weekly: It’s the dawning of the age of AI — plus,  Musk is raging against the machine