FerretDB Installation on Oracle Linux

Installing FerretDB Using PostgreSQL as the Database Engine

FerretDB is an open-source project that aims to provide a MongoDB-compatible API (converting the MongoDB 5.0+ wire protocol queries to SQL) using a different database engine (PostgreSQL or SQLite ) on the backend. One common use case is running FerretDB with PostgreSQL as its database engine. This setup can be beneficial for organizations that prefer PostgreSQL for its reliability, advanced features, and open-source nature, but still need a MongoDB-compatible API for their applications.

FerretDB functions as a drop-in replacement for MongoDB 5.0+ in many cases. Features are constantly being added to further increase compatibility and performance.

Compatibility: Offers a MongoDB-like API while using PostgreSQL’s mature feature set.

Cost-Effective: Suitable for those who prefer open-source solutions without vendor lock-in.

Performance: PostgreSQL’s robust indexing and query optimization can enhance database operations.

I will install FerretDB version 1.21 on Oracle Linux Server release 8.7 using RPM packages and configure it to listen on port 27002.

Install PostgreSQL Database for FerretDB backend. You may also use your PostgreSQL Database Server running on different host.

Modify the PostgreSQL database to listen on all IP addresses and configure the network access rules in pg_hba.conf.

Create a database for FerretDB to store MongoDB Collections as tables/relations.

Now you may use it store MongoDB collections. Let’s start it.

It will utilize the PostgreSQL database located at 192.168.60.202:5432/ferretdb as the backend, and serve from 192.168.60.202:27002.

Open Source MongoDB alternative - FerretDB Installation
Open Source MongoDB alternative

Using FerretDB with PostgreSQL gives developers a practical solution. It offers the familiar MongoDB-style interface while benefiting from the reliability and robust features of PostgreSQL.

Hope it helps.


Discover More from Osman DİNÇ


Comments

Leave your comment