Show HN: OxideDB – Teach PostgreSQL Database How to Speak MongoDB Wire Protocol https://ift.tt/OxrsZe2
Show HN: OxideDB – Teach PostgreSQL Database How to Speak MongoDB Wire Protocol Hey everyone! I have created a product that relies on MongoDB for a document store but doesn't really need any of the distributed features to really justify having a hosted MongoDB or DocumentDB instance. Now that we're trying to turn this into a product, we're seeing that some companies have a little bit of resistance around managing yet another database. Most of our clients already have and manage PostgreSQL in one form or another. I knew that PostgreSQL already offered first class JSON support, but I didn't want to rewrite the application data layer from scratch if I could avoid it. That's when I started researching if there was a "proxy" that would translate the MongoDB protocol - that I was completely ignorant about - into PostgreSQL. To my surprise there was nothing ready for production use but I found MangoDB that later on became FerretDB. I delved into the code and was in love with the idea. The team around is really nice, but I found that they had greater ambitions - they basically wanted to offer multiple backends, namely Tigris, on top of PostgreSQL. On the other hand, I have been waiting to find an excuse to delve deeply into the rust ecosystem but never really found something I was passionate about until I had the idea of challenging myself to see if I could learn about the protocol that MongoDB uses by relying on their public documentation and the hints I found on FerretDB. Fast forward 3 weeks and I have something I am almost comfortable on sharing yet super excited to get feedback on. It's in very early stages, and it's work from someone that is not yet super comfortable with the stack. Please don't be too harsh and keep in mind this is the beginning of a journey for me that I embarked out of pure joy on getting a tiny bit better on rust and making things click internally. Thank you for your time and if you would like to help me on this project please be more than welcome to reach out, either here, via email or directly on the GitHub repo. (heavy breathing before clicking submit :-) ) PS: I forgot to mention, but another thing I added to my toolbelt while developing this was about creating parsers. In order to transform MongoDB JSON to SQL queries, I ported an existing library from the MongoDB team from PEG.js to pest.rs! https://ift.tt/zQhbnGN August 15, 2022 at 10:43PM
Comments
Post a Comment
Thanks you :)
if you like it share please