A Compilation of Free and High-Quality Serverless Databases

A Compilation of Free and High-Quality Serverless Databases

Daily short news for you
  • For over a week now, I haven't posted anything, not because I have nothing to write about, but because I'm looking for ways to distribute more valuable content in this rapidly exploding AI era.

    As I shared earlier this year, the number of visitors to my blog is gradually declining. When I looked at the statistics, the number of users in the first six months of 2025 has dropped by 30% compared to the same period last year, and by 15% compared to the last six months of 2024. This indicates a reality that users are gradually leaving. What is the reason for this?

    I think the biggest reason is that user habits have changed. They primarily discover the blog through search engines, with Google being the largest. Almost half of the users return to the blog without going through the search step. This is a positive signal, but it's still not enough to increase the number of new users. Not to mention that now, Google has launched the AI Search Labs feature, which means AI displays summarized content when users search, further reducing the likelihood of users accessing the website. Interestingly, when Search Labs was introduced, English articles have taken over the rankings for the most accessed content.

    My articles are usually very long, sometimes reaching up to 2000 words. Writing such an article takes a lot of time. It's normal for many articles to go unread. I know and accept this because not everyone encounters the issues being discussed. For me, writing is a way to cultivate patience and thoughtfulness. Being able to help someone through my writing is a wonderful thing.

    Therefore, I am thinking of focusing on shorter and medium-length content to be able to write more. Long content will only be used when I want to write in detail or delve deeply into a particular topic. So, I am looking for ways to redesign the blog. Everyone, please stay tuned! 😄

    » Read more
  • CloudFlare has introduced the pay per crawl feature to charge for each time AI "crawls" data from your website. What does that mean 🤔?

    The purpose of SEO is to help search engines see the website. When users search for relevant content, your website appears in the search results. This is almost a win-win situation where Google helps more people discover your site, and in return, Google gets more users.

    Now, the game with AI Agents is different. AI Agents have to actively seek out information sources and conveniently "crawl" your data, then mix it up or do something with it that we can't even know. So this is almost a game that benefits only one side 🤔!?

    CloudFlare's move is to make AI Agents pay for each time they retrieve data from your website. If they don’t pay, then I won’t let them read my data. Something like that. Let’s wait a bit longer and see 🤓.

    » Read more
  • Continuing to update on the lawsuit between the Deno group and Oracle over the name JavaScript: It seems that Deno is at a disadvantage as the court has dismissed the Deno group's complaint. However, in August, they (Oracle) must be held accountable for each reason, acknowledging or denying the allegations presented by the Deno group in the lawsuit.

    JavaScript™ Trademark Update

    » Read more

The Problem

I'm sure there are many people here who are familiar with the name MongoDB, a No-SQL database that was once very popular. A few years ago, anyone who didn't know or work with Mongo might have been considered "outdated". Ha! I'm just joking, of course, but I want to emphasize its widespread use.

There are many ways to set up a Mongo server, from configuring it through the source code to installing it through the package manager integrated in the operating system, such as apt on Ubuntu or brew on MacOS. Just type a few commands and the software is installed in a few minutes. These software are usually converted into services, making it easy for the operating system to manage and monitor the status of the running application. Later, Docker became popular and people started using it to deploy everything from development to production environments. However, all these methods have one thing in common - they require management resources. Any software-related issues can bring down the system at any time. If an error occurs, you have to find the cause and fix it yourself.

One day, Mongo Atlas appeared. I was curious, so I signed up to try it out. As it turned out, it was just a Mongo server. Instead of setting it up on my own server, they - Mongo Atlas set it up on a cluster of servers that they managed. "Strange, why did they do that? Isn't setting it up on their own server much cheaper?" I looked at the price list and wondered.

After using it, I realized that Atlas provides system monitoring features, which are like a dashboard that summarizes system parameters, and many functions that previously required commands to execute. Many of these features are very intuitive and convenient to use. No need to remember and type long commands anymore. Just log in to the management page to see the current system status.

So, why did I mention Mongo Atlas?

With the continuous development of technology, people are always coming up with innovative solutions. Many providers have found ways to reduce the workload of developers. Instead of having them set up the system, spend time maintaining it, and manage risks... they will take care of all that. What developers need is to focus on developing and creating applications that run smoothly and efficiently.

Mongo Atlas has also supported serverless databases, indirectly acknowledging that serverless is an inevitable trend. Where users pay as they go. Inheriting the advantages of the Atlas infrastructure, serverless databases aim at individual users, rather than businesses as before. Enterprise customers always bring in huge revenue, but individual customers are also a huge potential if they know how to "take care" of them.

Serverless databases may be a new concept to many people. For example, I only learned about it about a year ago. The term "serverless database" refers to a database model where users do not need to manage resources such as servers, hardware, or infrastructure. It is completely different from traditional server deployment. Here, what we focus on is using development time, rather than configuring and maintaining the system.

However, serverless databases may not be suitable for everyone. The cost is calculated differently than traditional servers, depending on each provider, but generally based on the number of queries and storage capacity.

I am one of the people who have benefited from the serverless architecture. The evidence is that I have reduced the operating cost of my blog to zero. Therefore, today, I will summarize some services that provide free but limited serverless databases, which are very generous. I hope this helps readers.

Serverless Databases based on MySQL

TiDB is an open-source distributed database, based on MySQL. Like other open-source projects, TiDB provides Cloud services so you don't need to deploy it yourself. Moreover, TiDB offers a free package to "try out".

Specifically, the total storage capacity is up to 25GB for row/column data, accompanied by 250 million query units - simply put, the read/write speed of the CPU for each query, and even the Internet bandwidth is calculated. To learn more about the calculation method, read What is a Request Unit (RU).

Databases created on TiDB support the MySQL connection standard. That means you can use any library compatible with MySQL to connect to this database. Besides, Serverless is not left out when TiDB supports Cloudflare Workers, Vercel Edge Functions, and Netlify Edge Functions... TiDB Cloud Serverless Driver Node.js Tutorial

Serverless Databases based on PostgreSQL

Supabase is probably a name I've mentioned in many of my articles. Supabase supports Postgres very fully, almost everything you can do with Postgres can be done on Supabase. Like Functions, Triggers, or even Extensions...

Supabase offers a free package with limited storage capacity, only 500MB. But in return, the quality and stability are relatively high.

Neon is the next name, similar to Supabase. Also based on Postgres, also with 500MB storage capacity, accompanied by some limitations on computational units and 5GB Data transfer. Neon is also compatible with Postgres drivers. Both have drivers compatible with serverless environments. Although I haven't directly experienced it, Neon is being trusted and used by many people.

Xata.io seems to be a prominent name when compared to the two above. The storage capacity is up to 15GB... and no other limitations were found on the number of queries, processing speed, or bandwidth... Moreover, Xata also integrates AI chat support if you have any questions to answer.

Xata is compatible with Postgres drivers and, of course, serverless environments.

Serverless Databases based on SQLite

Since I learned about Turso, I have had a different view of SQLite. Previously, working on many projects, Postgres was always the top choice because it was too stable. While SQLite was suitable for small projects and local development, such as mobile applications.

Turso brought SQLite "to the cloud" and firmly stated that SQLite could definitely be used for large-scale real-world projects. They were very generous when they released a free package with a large storage capacity. Up to 9GB of storage, 1 billion reads, and 25 million writes.

Since I started moving my projects to Cloudflare to optimize costs, the name D1 appeared under the "Beta" label - meaning it's being tested before being officially released. D1 is a database based on SQLite. Before wanting to use D1, you need to upgrade your Cloudflare account to Paid. Additionally, D1 supports serverless environments very limitedly, only being compatible with Cloudflare Worker and not supporting SQLite drivers or other serverless environments.

Conclusion

The above is just a few among many names I know. I believe that in the near future, more names will join this game. Are you using any of the services mentioned in this article? Or is it another service? What are its pros and cons? Please leave a comment below!

Premium
Hello

Me & the desire to "play with words"

Have you tried writing? And then failed or not satisfied? At 2coffee.dev we have had a hard time with writing. Don't be discouraged, because now we have a way to help you. Click to become a member now!

Have you tried writing? And then failed or not satisfied? At 2coffee.dev we have had a hard time with writing. Don't be discouraged, because now we have a way to help you. Click to become a member now!

View all

Subscribe to receive new article notifications

or
* The summary newsletter is sent every 1-2 weeks, cancel anytime.

Comments (1)

Leave a comment...
Avatar
Ẩn danh7 months ago

Xata với turso con nào ngon hơn vậy bác

Reply
Avatar
Xuân Hoài Tống7 months ago

Xata thì mình chưa dùng nhiều, nhưng nó không có nhiều tính năng bằng Supabase. Còn Turso là sqlite rồi, phù hợp với mấy tác vụ cơ bản, đơn giản, và rất ngon 😁