TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: BerylDB – a small key-value database

57 点作者 cfferry将近 4 年前

12 条评论

cfferry将近 4 年前
hello YCombinator Community:<p>I hope everyone is having a great week!!<p>I&#x27;m working on a small key-value database, written in C++ and powered by RocksDB. It started as a hobby, but I am trying to slowly turn it into a stable project.<p>The project is called BerylDB. A PHP API was released a couple of days ago, and currently working on a NodeJS gateway. I&#x27;m super excited about the project and actively improving its functionalities. The server is fully modular, which means that components can be loaded&#x2F;unloaded as required. In addition to data storage, the server has channels, and clients can subscribe to them. This make it a great solution for real time analytics.<p>The ultimate goal of this project is to have a community of custom modules that users may be interested on. This may be useful for developers and&#x2F;or companies requiring specific needs.<p>I&#x27;m open to collaborations! If you happen to have interested in databases, please let me know. I am on Discord. Any kind of collaboration or feedback would be appreciated. If you work for an startup or need high speed performance, please let me know!<p>Discord: <a href="https:&#x2F;&#x2F;discord.gg&#x2F;H6HVxeDq" rel="nofollow">https:&#x2F;&#x2F;discord.gg&#x2F;H6HVxeDq</a><p>Docs: <a href="https:&#x2F;&#x2F;docs.beryl.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.beryl.dev&#x2F;</a><p>Server repository: <a href="https:&#x2F;&#x2F;github.com&#x2F;beryldb&#x2F;beryldb" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;beryldb&#x2F;beryldb</a><p>Client (command line): <a href="https:&#x2F;&#x2F;github.com&#x2F;beryldb&#x2F;beryldb-cli" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;beryldb&#x2F;beryldb-cli</a><p>PHP API: <a href="https:&#x2F;&#x2F;github.com&#x2F;beryldb&#x2F;php-beryl" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;beryldb&#x2F;php-beryl</a>
tlackemann将近 4 年前
Interested in this project! Ever since Redis become much more than a KV, I&#x27;ve been seeking something a bit simpler. I&#x27;ll admit, Redis is simple to get stared with, but there is a lot to learn once you do.<p>What goals does Beryl have, both short and long? Does it aim to compete with Redis? Can you host a cluster of BerylDB instances? What type of benchmarks are you seeing?
评论 #28380368 未加载
ipsum2将近 4 年前
Can you compare Beryl with using Rocksdb directly?
评论 #28386919 未加载
swagonomixxx将近 4 年前
What&#x27;s the advantage of using BerylDB over Redis? Is it speed, or something else in the feature set (current or future)?
jeremyjh将近 4 年前
I spent a lot of time on the home page wondering if this is a network database server or an embedded database library.
评论 #28385656 未加载
tyingq将近 4 年前
Looks clean and straightforward. Couple of questions...<p><pre><code> &lt;server name=&quot;server2.beryl.dev&quot; network=&quot;cluster&quot;&gt; </code></pre> It says the network key should be &quot;Name of global network&quot;. Not sure what that is, and I don&#x27;t see anything using it, printing it, etc. What&#x27;s this for?<p>Similar question on this:<p><pre><code> &lt;listen address=&quot;127.0.0.1&quot; port=&quot;6379&quot; type=&quot;clients&quot;&gt; </code></pre> What is type? It says it defaults to &quot;clients&quot;, but not what that means, what the other choices are, etc.<p>Similar for &quot;connecting class name&quot;. It&#x27;s not clear what things that drives.
tyingq将近 4 年前
On the PHP api, you&#x27;re returning 0 when there&#x27;s a failure. You also return 0 when there is no such key on a get().<p>That isn&#x27;t a great idea, since that would mean no discernable difference from<p>- An error, like a network error<p>- No such key exists<p>- Key did exist, and it&#x27;s value was 0, though I suppose I could test the type with gettype()? Seems odd to return an int instead of a boolean though.<p>For comparison, the phpredis api raises an exception for errors and returns a boolean false if no such key exists.
评论 #28391803 未加载
reilly3000将近 4 年前
Looks interesting! Do you have plans to add aggregations and analytics functions? It seems like you can do simple counting with TOUCH but I didn’t see any SUM etc. Can it run in-memory or just on disk? If in-memory how does it benchmark vs Redis? Thanks and congrats on the launch!
option_greek将近 4 年前
Neat!. Feature request: 1) Please consider adding a rust helper library 2) Please consider making backups and fault-tolerance easier than current solutions
john-tells-all将近 4 年前
What&#x27;s the comparison to Redis?
junon将近 4 年前
You need Show HN: in the title if this is your own project. Just an FYI.<p>E: why the downvote?
评论 #28375196 未加载
edoceo将近 4 年前
Reminded me of that other Beryl, remember that thing? Flames on all my windows and lasers when I clicked, rad.