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

Stack AI’s co-founders, Antoni Rosinol and Bernardo Aceituno, were PhD students at MIT wrapping up their degrees in 2022 just as large language models were becoming more mainstream. ChatGPT would…

Stack AI wants to make it easier to build AI-fueled workflows

Pinecone, the vector database startup founded by Edo Liberty, the former head of Amazon’s AI Labs, has long been at the forefront of helping businesses augment large language models (LLMs)…

Pinecone launches its serverless vector database out of preview

Young geothermal energy wells can be like budding prodigies, each brimming with potential to outshine their peers. But like people, most decline with age. In California, for example, the amount…

Special mud helps XGS Energy get more power out of geothermal wells

The market play is clear from the outset: The $449 headphones are firmly targeted at an audience that would otherwise be purchasing the Bose QC Ultra or Apple AirPods Max.

Sonos finally made some headphones

Adobe says the feature is up to the task, regardless of how complex of a background the object is set against.

Adobe brings Firefly AI-powered Generative Remove to Lightroom

All cars suffer when the mercury drops, but electric vehicles suffer more than most as heaters draw more power and batteries charge more slowly as the liquid electrolyte inside thickens.…

Porsche invests in battery startup South 8 to boost cold-weather EV performance

Scale AI has raised a $1 billion Series F round from a slew of big-name institutional and corporate investors including Amazon and Meta.

Data-labeling startup Scale AI raises $1B as valuation doubles to $13.8B

The new coalition, Tech Against Scams, will work together to find ways to fight back against the tools used by scammers and to better educate the public against financial scams.

Meta, Match, Coinbase and others team up to fight online fraud and crypto scams

It’s a wrap: European Union lawmakers have given the final approval to set up the bloc’s flagship, risk-based regulations for artificial intelligence.

EU Council gives final nod to set up risk-based regulations for AI

London-based fintech Vitesse has closed a $93 million Series C round of funding led by investment giant KKR.

Vitesse, a payments and treasury management platform for insurers, raises $93M to fuel US expansion

Zen Educate, an online marketplace that connects schools with teachers, has raised $37 million in a Series B round of funding. The raise comes amid a growing teacher shortage crisis…

Zen Educate raises $37M and acquires Aquinas Education as it tries to address the teacher shortage

“When I heard the released demo, I was shocked, angered and in disbelief that Mr. Altman would pursue a voice that sounded so eerily similar to mine.”

Scarlett Johansson says that OpenAI approached her to use her voice

A new self-driving truck — manufactured by Volvo and loaded with autonomous vehicle tech developed by Aurora Innovation — could be on public highways as early as this summer.  The…

Aurora and Volvo unveil self-driving truck designed for a driverless future

The European venture capital firm raised its fourth fund as fund as climate tech “comes of age.”

ETF Partners raises €285M for climate startups that will be effective quickly — not 20 years down the road

Copilot, Microsoft’s brand of generative AI, will soon be far more deeply integrated into the Windows 11 experience.

Microsoft wants to make Windows an AI operating system, launches Copilot+ PCs

Hello and welcome back to TechCrunch Space. For those who haven’t heard, the first crewed launch of Boeing’s Starliner capsule has been pushed back yet again to no earlier than…

TechCrunch Space: Star(side)liner

When I attended Automate in Chicago a few weeks back, multiple people thanked me for TechCrunch’s semi-regular robotics job report. It’s always edifying to get that feedback in person. While…

These 81 robotics companies are hiring

The top vehicle safety regulator in the U.S. has launched a formal probe into an April crash involving the all-electric VinFast VF8 SUV that claimed the lives of a family…

VinFast crash that killed family of four now under federal investigation

When putting a video portal in a public park in the middle of New York City, some inappropriate behavior will likely occur. The Portal, the vision of Lithuanian artist and…

NYC-Dublin real-time video portal reopens with some fixes to prevent inappropriate behavior

Longtime New York-based seed investor, Contour Venture Partners, is making progress on its latest flagship fund after lowering its target. The firm closed on $42 million, raised from 64 backers,…

Contour Venture Partners, an early investor in Datadog and Movable Ink, lowers the target for its fifth fund

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

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