3 ms·
Can Go be a good language to implement NoSql database?
by playingcolours 14y ago
Can Go be a good language to implement NoSql database?
- jlouis 14y agoI would think so. It has many of the properties you would like in implementing a database system. First, the language is statically typed and executes surprisingly quickly. Second, it can handle high concurrency which is needed in a database since you will have many clients connection. Third, the libraries letting you interface with protobufs and HTTP provides two pretty simple ways to connect your Database interface to the rest of the world. The perhaps most glaring problem, compared to the world of Erlang where I come from, is the lack of built-in seamless distribution. Many NoSQL databases trades consistency for availability and more machines. You are on your own implementing this. Also, the lack of a ZooKeeper-like library may be something you will end up implementing. That, or perhaps the basis of the Dynamo paper.
- xal 14y agoZooKeeper in Go: https://github.com/ha/doozerd https://github.com/ha/doozerd
- azth 14y ago> I would think so. It has many of the properties you would like in implementing a database system. First, the language is statically typed and executes surprisingly quickly. Second, it can handle high concurrency which is needed in a database since you will have many clients connection. Third, the libraries letting you interface with protobufs and HTTP provides two pretty simple ways to connect your Database interface to the rest of the world. But that is not unique to Go, it may as well apply to Java, Scala, etc...
- robfig 14y agoLevelDB in Go: http://code.google.com/p/leveldb-go/ http://code.google.com/p/leveldb-go/ It provides in-memory and file-backed implementations.