What is our primary use case?
I am currently working with Prometheus for observability on top of a platform, making Prometheus my main tool. In my past project, I used Contentful as a headless CMS for content delivery.
I use standard Postgres and Prometheus in my current project, with no other tools of that sort for other use cases. The choice of database depends on the project, but mostly for any POC that I do, I choose Postgres because of its simplicity. In the AI world, it has pgvector, an index store that is good for RAG systems.
Basically, a transaction DB in our application as well as a vector store for our RAG pipeline is my central use case.
What is most valuable?
The good aspect about PostgreSQL on Ubuntu is the huge community support that we have. PostgreSQL on Ubuntu is open source software, and different teams have contributed to open source. So it is quite robust in providing a lot of things. If you think about on-the-fly aggregations, it also supports that. Distributed clusters are also supported. It is a tool that is right now very mature and able to handle a lot of use cases. Coming from a SQL background, PostgreSQL on Ubuntu is the standard tool that we use. Most of my use cases are sometimes POCs that I need to deliver. At that point, it is a no-brainer to just use PostgreSQL on Ubuntu because of its simplicity and familiarity.
What needs improvement?
The initial setup can be tricky. If you are going for some advanced things and have a lot of data, then you also have to think a lot about how to set up the cluster. The infrastructure of the cluster is something that you need to consider if you are hosting a lot of data. For a general use case, it is fine, but when it comes to scaling, you have to pay a little attention to the cluster. This is true for other search services as well, where you have to think about similar kinds of considerations. With Algolia, you did not have to worry because it was managed by the service layer itself. Since this is a more hands-on tool, once the data comes in and the volume is high, then you must also think about the infrastructure.
For how long have I used the solution?
I have more than five years of experience with PostgreSQL on Ubuntu. My usage has been on and off.
What do I think about the stability of the solution?
I have not seen any stability issues with PostgreSQL on Ubuntu in my day-to-day work. Maybe something we have done to our services has caused the issue, but we have not seen a core PostgreSQL on Ubuntu issue. PostgreSQL on Ubuntu is quite stable.
What do I think about the scalability of the solution?
If you are dealing with multiple regions and huge data with huge transactions per second, in that case, you have to set up the cluster. It is not impossible. You just need to know the right cluster settings to set it up.
Which solution did I use previously and why did I switch?
I have used Amazon OpenSearch services as a tool for similar purposes.
How was the initial setup?
PostgreSQL on Ubuntu is very easy in terms of installation and deployment.
What about the implementation team?
I have not done it personally. My team has done it. My DevOps team has provisioned AWS instances as well as Azure instances. Under the hood, I do not know what I am dealing with. For me, it is just an IP address that I can SSH into and do it. Where the cloud is running, I know for sure they are using AWS and Azure interchangeably.
What was our ROI?
ACID transactions basically talk about write queries. Basically, if it is a distributed system, it makes sure that transaction consistency is there on each of the transactions that is happening. Think about if you are in a different geographic location and your cluster is hosted in two different geographic locations, maybe one in South Pacific and one in Western Europe. In both cases, if write transactions are happening, this is a good way to basically order the transactions so that the eventual data consistency is there.
With the basic version, you can very quickly do POCs. That is a very good ROI for that because suppose you have to do a demo in one week and you want to just quickly bootstrap some services and get the solution up. It is a very good service to do that. However, with different use cases, maybe different solutions are better. If you are going for an e-commerce solution where you have multiple filters available and you have to show aggregation, then a different type of query and a different type of database is needed.
What's my experience with pricing, setup cost, and licensing?
I am not using the Algolia service. I have purchased something from AWS Marketplace.
Which other solutions did I evaluate?
I was just looking at a service called ClickHouse. ClickHouse also has a different type of database. It is a clickstream analysis database. What we are trying to do is instead of Prometheus, we are thinking of using ClickHouse in our project because of how fast it is. Under the hood, it does a different type of operations to do aggregations, sums, and other operations. Since it is a SQL-based query system, the familiarity is there.
What other advice do I have?
My overall rating for PostgreSQL on Ubuntu is nine out of ten.
Which deployment model are you using for this solution?
Public Cloud
If public cloud, private cloud, or hybrid cloud, which cloud provider do you use?
Amazon Web Services (AWS)