Re:Show HN: MongoDB Protocol for SQLite
by winrid on Tuesday July 04, 2023 @03:19PM
(#36591409)
If this implemented sharding it'd be killer. I recognize that'd be a huge amount of work, but that would be amazing! I may do that someday. You could just use one PG instance as the config servers and this takes place as the mongos.
[ Parent
| on HN ]
Re:Show HN: MongoDB Protocol for SQLite
by peterfarkas on Tuesday July 04, 2023 @03:41PM
(#36591635)
Maintainer here. That's a very good idea! Let us know if you ever have some time to work with us on this.
Re:Show HN: MongoDB Protocol for SQLite
by throwaway888abc on Tuesday July 04, 2023 @03:48PM
(#36591727)
You should speak to PayloadCMS guys. It can be mutually benefiting (publicity/more users/etc.). It needs Mongo, but if it works with Ferret backed by SQLite (and others) that would be game changer.
Great project of yours! Thank you
* will try to hack docker-compose for this if time allows
Re:Show HN: MongoDB Protocol for SQLite
by peterfarkas on Tuesday July 04, 2023 @04:29PM
(#36592140)
Thank you, we will take a look!
Awesome! This might be my new Sunday project once I'm done with the current one.
Mongo's sharding is nice but I'm really tired of their support. They force you to run smaller machines in the contract so they can charge more for # of nodes, and it adds complexity to your architecture so you're swayed into buying Atlas. I could replace it all with a few PG shards with bigger machines.
Re:Show HN: MongoDB Protocol for SQLite
by peterfarkas on Tuesday July 04, 2023 @04:13PM
(#36591961)
Yes this is one of the reasons we started FerretDB. Atlas is very easy to use, but it is nearly impossible to move away from later on, as there is no alternative (unless you are ready to rewrite your app). We think that most of its killer features, like easy sharding, can be done with Postgres and/or SQLite.
I agree. I'd love to work on this full time if I could.
Might also be an interesting idea to use sqllite's inmemory feature.